cd /news/artificial-intelligence/game-boy-roms-recompiling-game-boy-g… · home › topics › artificial-intelligence › article
[ARTICLE · art-177681] src=reversedwithai.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

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.

recommendation

Validate recompiler output against an independent reference rather than a harness you wrote alongside the implementation; McMillan's shared-assumption harness passed while tile and palette formats were wrong.

more in playbook: Verifying model output
by read1 min views2 publishedNov 27, 2026
Game Boy ROMs: Recompiling Game Boy games for the Sega Master System using AI
Image: Reversedwithai (auto-discovered)

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.

Discussion #

Your 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. Something wrong? Tell me.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @damian mcmillan 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/game-boy-roms-recomp…] indexed:0 read:1min 2026-11-27 · —