# Sonic 1 C Port: reconstructing Mega Drive game code in C

> Sonic 1 C Port translates Sonic the Hedgehog revision 1 code from a Mega Drive ROM into C, then manually repairs generated control flow. A Rust runner and Speedshoes emulation framework compare C-side game state with the original and support instruction-level accuracy checks.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/foreverWIP/s1-port>
- Primary source: <https://github.com/foreverWIP/s1-port/blob/bf1950ae48e7c2c930f71e48c03d26170533d7a3/readme.md>
- Catalog page: <https://awesomerea.org/resources/sonic-1-c-port-case/>
- Record JSON: <https://awesomerea.org/resources/sonic-1-c-port-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/sonic-1-c-port-case/index.md)

## Requirements & limits

- **Prerequisites:** An original REV01 ROM named sonic1.bin is required.
- **Prerequisites:** The documented build uses TCC and Rust 2021 edition.
- **Limits:** Horizontal blank handling remains unported; build instructions are marked out of date.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/foreverWIP/s1-port/blob/bf1950ae48e7c2c930f71e48c03d26170533d7a3/readme.md>

## More in Games

- [Sonic CD 2011: an RSDKv3 Dreamcast port](https://awesomerea.org/resources/sonic-cd-dreamcast-port-case/index.md) · Case study
- [soniccdrespinned: a cross-platform Sonic CD port built on the decompiled code](https://awesomerea.org/resources/soniccdrespinned-case/index.md) · Case study
- [SoulCalibur Vita: running the Android game on PS Vita](https://awesomerea.org/resources/soulcalibur-vita-case/index.md) · Case study
- [Space Rangers HD — Free Pascal Port: adapting recovered Delphi source](https://awesomerea.org/resources/space-rangers-hd-free-pascal-port-case/index.md) · Case study
- [SpaghettiKart: a native Mario Kart 64 port built on decompiled source](https://awesomerea.org/resources/spaghettikart-mk64-port-case/index.md) · Case study
- [SpaghettiKart: an Android port of Mario Kart 64](https://awesomerea.org/resources/spaghettikart-android-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
