Game Boy ROMs: Recompiling Game Boy games for the Sega Master System using AI Damian McMillan built gb2sms, a static recompiler that converts Game Boy ROMs into Sega Master System cartridge images, and it runs Tetris on Master System hardware at full speed with instruction-level synchronization. The pipeline combines a ROM disassembler, SM83-to-Z80 instruction translation and a hardware I/O shim, with DeepSeek V4.1 Flash handling initial translation and Claude Opus 5.5 handling debugging via custom Mesen emulator tools for memory-write monitoring and lockstep comparison against Game Boy emulators. McMillan reported sound fidelity gaps because the Game Boy wave channel has no direct Master System equivalent, and noted that a self-written test harness produced a false positive when implementation and test tool shared the same incorrect tile and palette assumptions. Who did what 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 https://dmcmillan.co.uk/blog/recompiling-game-boy-games-for-the-sega-master-system . Discussion Your library https://reversedwithai.com/library 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. https://reversedwithai.com/about method Something wrong? Tell me. https://reversedwithai.com/policy takedown