# Sonic the Hedgehog for Master System gets a native Windows recomp prerelease

> SonicTheHedgehogSMSRecomp v0.0.3 turns the Master System Sonic game into a native Windows build. It is a prerelease, and you supply your own ROM.

- Published: 2026-10-20T06:28:53Z
- Score: 9/10
- Tags: recomp, pc, port
- Port / platforms: Other -> PC (Windows) (Recompilation)
- Web page: https://emu-radar.customfw.xyz/news/sonic-sms-recomp-v0-0-3/
- Sources: https://github.com/mstan/SonicTheHedgehogSMSRecomp

Sonic the Hedgehog for the Sega Master System now runs as a native Windows program. The latest build, v0.0.3, is marked as a prerelease. The project is SonicTheHedgehogSMSRecomp, made by mstan, and its page places it in what it calls the R.A.I.D. community.

Static recompilation means the game's Z80 machine code (the Master System's CPU) gets translated into C ahead of time and compiled into a normal binary. The game doesn't get interpreted while it runs, at least for most of its code. The console hardware, meaning the video chip (VDP), the SN76489 sound chip, the controller ports and the Sega mapper, comes from smsggrecomp, a separate framework the repo builds on. When the static analysis can't resolve a computed jump, the build falls back to a bundled Z80 interpreter that reads the live bus.

The author's assisted survey covers 27 original level and bonus selectors, plus two ending variants that run through the staff roll. A 37-entry dispatch profile, verified against the ROM, runs those routes with zero fallback. All 89 checkpoints, comparing native and interpreter output, agree. The README is clear that these are assisted scene tests and that full unassisted gameplay is still unverified. It doesn't spell out what "assisted" means in practice. The README points to smsggrecomp/COVERAGE.md for details.

Controls: arrow keys for the D-pad, Z for jump, X for button 2, Enter for Start and Pause, Esc to quit.

To try it:

1. Download `SonicTheHedgehogSMSRecomp-windows-x64.zip` from the Releases page, unzip it, and keep `SDL2.dll` next to the `.exe`.
2. Supply your own legally dumped Sonic the Hedgehog (SMS) ROM as a `.sms` file. The expected CRC32 is `0xB519E833`, and the size is 256 KB.
3. Run `SonicTheHedgehogSMSRecomp.exe path\to\sonicthehedgehog.sms --window 3`.

The repo has no license yet. The code is original, but the ROM and any data taken from it can't be redistributed.

My take: the value is in the toolchain. Keep an eye on smsggrecomp. If the method holds up, it could carry other Z80 games.
