# Sonic Battle: a matching GBA decompilation

> Sonic Battle decomp reconstructs the USA Rev 0 Game Boy Advance game as matching C and assembly. Its build checks the user's ROM hash, compiles recovered code with agbcc and compares a linked whole-ROM image with the original. The author reports 51.81% of executable text decompiled to C; handwritten assembly accounts for additional reproduced bytes.

- 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/nicklesimba/sonic-battle-decomp>
- Primary source: <https://github.com/nicklesimba/sonic-battle-decomp/blob/d150f0d135efa1a0c63908a1ff7336648f4ca8cc/README.md>
- Catalog page: <https://awesomerea.org/resources/sonic-battle-decomp-case/>
- Record JSON: <https://awesomerea.org/resources/sonic-battle-decomp-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/sonic-battle-decomp-case/index.md)

## Requirements & limits

- **Prerequisites:** A USA Rev 0 Sonic Battle ROM matching the documented SHA-1 is required.
- **Prerequisites:** Python 3, ARM binutils and the pinned agbcc toolchain are required.
- **Limits:** The author estimates that some executable code cannot be matched as C.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/nicklesimba/sonic-battle-decomp/blob/d150f0d135efa1a0c63908a1ff7336648f4ca8cc/README.md>
2. <https://github.com/nicklesimba/sonic-battle-decomp/blob/d150f0d135efa1a0c63908a1ff7336648f4ca8cc/decomp/README.md>

## More in Games

- [Sonic Riders: matching decompilation of the GameCube game](https://awesomerea.org/resources/sonic-riders-decomp/index.md) · Case study
- [Sonic Rush Adventure: an in-progress matching DS decompilation](https://awesomerea.org/resources/sonic-rush-adventure-decomp-case/index.md) · Case study
- [Sonic the Fighters: an i960 program ROM disassembly](https://awesomerea.org/resources/sonic-the-fighters-disassembly-case/index.md) · Case study
- [Sonic the Hedgehog (2006): Xbox 360 source reconstruction](https://awesomerea.org/resources/sonic-2006-decomp-case/index.md) · Case study
- [Sonic the Hedgehog 2: byte-identical REV00 and REV01 source reconstruction](https://awesomerea.org/resources/sonic-the-hedgehog-2-source-reconstruction-case/index.md) · Case study
- [Soul Reaverse: reconstructing Legacy of Kain: Soul Reaver](https://awesomerea.org/resources/soul-reaverse-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.
