Repository navigation
retrocast v0.7.1
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); arcade: Capcom Play System I (68000 and Z80, the Q-Sound board included).
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 their chips' CRCs whatever their names; the Q-Sound games also need qsound.zip.
Downloads
Windows (x64, arm64), Linux (x64, arm64; glibc 2.35+), macOS (Apple Silicon). Each archive has:
retrocast: plays a game of any system in the interpreter; the system is read from the file (--systempicks one when the file does not say)- 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 |
mdrecomp |
| Atari 2600 | atari2600_headless |
atari2600recomp |
| Master System, Game Gear | sms_headless |
smsrecomp |
| CPS-1 | cps1_headless |
cps1recomp |
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 cartridges and known limitations: NES, Game Boy, Genesis, Atari 2600, Master System and Game Gear, CPS-1.
What's Changed
- CPS-1: a recompiled game holds the game, no zip needed by @Viper-Bit in #65
Full Changelog: v0.7.0...v0.7.1