Repository navigation
retrocast v0.9.0
retrocast is a static recompiler for retro consoles and arcade boards: it translates a game's machine code into C and builds it into a native program, with a small runtime per system and an SDL3 window, sound and gamepads. Recompiled games are checked cycle by cycle against a built-in reference interpreter.
Systems: NES and Famicom Disk System (6502), Game Boy and Game Boy Color (SM83), Genesis / Mega Drive (68000 and Z80), Atari 2600 (6507), Master System / Mark III and Game Gear (Z80), Capcom Play System I (68000 and Z80), and Capcom Play System II (68000 and Z80).
No games are included: bring your own legally dumped ROMs and disk images (disk games also need the FDS BIOS; Game Boy games need no BIOS). CPS-1 games are MAME / FBNeo ZIPs matched by chip CRC. CPS-2 uses named MAME set ZIPs and any required parent ZIPs. QSound games on both boards need qsound.zip.
Downloads
Windows (x64, arm64), Linux (x64, arm64; glibc 2.35+), macOS (Apple Silicon). Each archive has:
retrocastruns the systems with SDL support. It identifies the system from the file, with--systemavailable for manual selection.- one headless program (
*_headless: the game without a window, for scripts and checks) and one recompiler (*recomp: the game to C) per system; each prints its options when run without arguments:
| System | Headless | Recompiler |
|---|---|---|
| NES, Famicom Disk System | nes_headless |
nesrecomp |
| Game Boy, Game Boy Color | gb_headless |
gbrecomp |
| Genesis / Mega Drive | genesis_headless |
genesisrecomp |
| Atari 2600 | atari2600_headless |
atari2600recomp |
| Master System, Game Gear | sms_headless |
smsrecomp |
| CPS-1 | cps1_headless |
cps1recomp |
| CPS-2 | cps2_headless |
cps2recomp |
| Neo Geo MVS | neogeo_headless |
neogeorecomp |
kit/: recompiles your own ROMs into native programs with only CMake and a C compiler installed (SDL3 comes prebuilt)
README.txt in the archive explains how to play and how to recompile. macOS builds are unsigned: run xattr -dr com.apple.quarantine retrocast-* once after unpacking.
Do not share recompiled programs: they contain the game.
Supported games and known limitations: NES, Game Boy, Genesis, Atari 2600, Master System and Game Gear, CPS-1, CPS-2, Neo Geo.
Renamed programs
Every system now ships NAME_headless and NAMErecomp. Three recompilers were renamed, so update scripts that call them:
| Before | Now |
|---|---|
mdrecomp |
genesisrecomp |
cps2_recompile |
cps2recomp |
neogeo_recompile |
neogeorecomp |
What's Changed
- CPS-2: reuse interpreter misses from gameplay by @Viper-Bit in #101
- Neo Geo P1: game table and loader with the BIOS by @Viper-Bit in #102
- Neo Geo P2: the machine and video to title screens by @Viper-Bit in #103
- Neo Geo P3: the YM2610 by @Viper-Bit in #104
- Neo Geo P4: the protected and encrypted sets by @Viper-Bit in #105
- Neo Geo P5: the boot test and compatibility list by @Viper-Bit in #106
- Add opt-in Atari 7800 support (P1) by @AMMIROSOH in #108
- Neo Geo: match MAME's timing, frame for frame by @Viper-Bit in #109
- Neo Geo P6: the recompiler by @Viper-Bit in #110
- Build contract: systems add no CMake options of their own by @Viper-Bit in #111
- Neo Geo P7: the window by @Viper-Bit in #112
- Neo Geo P8: save states by @Viper-Bit in #113
- Neo Geo P9: the build contract by @Viper-Bit in #114
- Neo Geo P10: the release by @Viper-Bit in #115
- One name per system: NAME_headless and NAMErecomp by @Viper-Bit in #116
Full Changelog: v0.8.2...v0.9.0