Who did what
“Adventures in AI: Recompiling Game Boy Games for the Sega Master System | Damian McMillan”
“Adventures in AI: Recompiling Game Boy Games for the…”
The author notes that a self-written test harness led to a false positive where both the implementation and the test tool shared the same incorrect assumptions about tile and palette formats, highlighting the risk of using a reference model created by the same developer as the implementation.
What was done
Damian McMillan developed a static recompiler to port Game Boy ROMs to the Sega Master System. Using DeepSeek V4.1 Flash for translation and Claude Opus 5.5 for debugging, the project successfully runs Tetris on Master System hardware.
Damian McMillan developed a static recompiler, gb2sms, to convert Game Boy ROMs into Sega Master System cartridge images. The pipeline utilizes a ROM disassembler, SM83-to-Z80 instruction translation, and a shim layer for hardware-specific I/O. DeepSeek V4.1 Flash performed initial translation tasks, including instruction decoding and tile format conversion. Claude Opus 5.5 handled complex debugging, which involved writing custom tools for the Mesen emulator to monitor memory writes and perform lockstep comparisons against Game Boy emulators. The recompiler successfully runs Tetris, maintaining full speed and instruction-level synchronization. Limitations include sound fidelity issues, as the Game Boy's wave channel lacks a direct Master System equivalent, and ongoing challenges with games that utilize features like the window layer or specific STAT interrupts. The author reports that debugging was difficult for the AI models, noting that DeepSeek V4.1 Flash struggled with iterative hypothesis testing, while Claude Opus 5.5 was effective for finding bugs that caused silent failures. The project is documented at https://dmcmillan.co.uk/blog/recompiling-game-boy-games-for-the-sega-master-system.
Discussion
Sources
Sources reviewed · Added
An AI model drafted this entry from the sources above. Checked against the sources on 28 Nov 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.


