# Sonic the Hedgehog SMS Recomp

> Sonic the Hedgehog SMS Recomp is an early static recompilation of the 8-bit Master System Sonic the Hedgehog for Windows by mstan.

Web page: https://emulationking.com/sega/mastersystem/games/sonicthehedgehog/ports/sonicthehedgehogsmsrecomp/
Page updated: 2026-10-18

- Developer: mstan
- Port type: Recompilation (A tool translated the game's original machine code into C automatically, which was then built as a native PC program.)
- Game: [Sonic the Hedgehog](https://emulationking.com/sega/mastersystem/games/sonicthehedgehog/index.md)
- AI use: AI-assisted. An AI coding tool is credited as co-author on 9 of the repository's 14 commits.
- Source code: https://github.com/mstan/SonicTheHedgehogSMSRecomp
- Runs on: Windows

What you need: A ROM of Sonic the Hedgehog for the Master System, dumped from your own cartridge.

Sonic the Hedgehog SMS Recomp is a native Windows port of the 8-bit Sonic the Hedgehog for the Master System, made by mstan by statically recompiling the game's Z80 code into C, with the video and sound chips emulated around it.

It is an early pre-release, started from the command line with the ROM path and a window scale. So far the output matches the original byte for byte over the title screen and the attract demo; the rest of the game is not yet verified.

The author says AI tools were used heavily in making it.

The download contains no game data. It needs a Sonic the Hedgehog ROM for the Master System, dumped from your own cartridge.

## How to set it up

1. Download the Windows zip and extract it. Keep `SDL2.dll` next to the executable.
2. Start it from a command prompt with the path to your ROM, for example `SonicTheHedgehogSMSRecomp.exe path\to\rom --window 3`.
3. `--window` sets the window scale (3 or 4 suit most screens).

## Latest builds

Download these from the web page: https://emulationking.com/sega/mastersystem/games/sonicthehedgehog/ports/sonicthehedgehogsmsrecomp/#download

- for Windows: 0.0.3 (2026-10-18)
