Repository navigation
retrocast v0.7.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); 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
- Release kit checks a Game Boy ROM; docs in step with the four systems by @Viper-Bit in #50
- 68000: MOVE.L address errors; every SingleStepTests family passes by @Viper-Bit in #51
- Master System / Mark III support (interpreted) by @Viper-Bit in #52
- Master System: Z80 recompiler (smsrecomp) by @Viper-Bit in #53
- Game Gear: a mode of the Master System by @Viper-Bit in #54
- Capcom Play System I: zips, the machine and video (P1-P2) by @Viper-Bit in #55
- Capcom Play System I: sound (P3) by @Viper-Bit in #56
- Capcom Play System I: window, detection, save states (P4) by @Viper-Bit in #57
- Capcom Play System I: the plain-board games (P5) by @Viper-Bit in #58
- CPS-1: the recompiler (P6) by @Viper-Bit in #59
- CPS-1: the Q-Sound games, Pang! 3 and the bootlegs (P7, P8) by @towhidzei in #60
- Cps1 table generator by @towhidzei in #61
- Frontend: four gamepads, players 3 and 4 on the CPS-1 by @Viper-Bit in #62
- Docs: release texts name every program, checked by a test by @Viper-Bit in #63
- Shared core: core/devices, capture and file read, the 68000 misses file by @Viper-Bit in #64
Full Changelog: v0.6.0...v0.7.0