<!-- Canonical page: https://reversedwithai.com/p/super-mario-64-gba-ai-port -->
Canonical page: https://reversedwithai.com/p/super-mario-64-gba-ai-port

# Adapted Super Mario 64 movement code for GBA with Claude

Claude Opus 5.5 wrote the code, test harness and engineering notes for a GBA adaptation of Super Mario 64 movement and collision. Tests report bit-exact physics and a four-level demo in emulators; physical GBA hardware has not yet been tested.

## Key facts

- Target: Super Mario 64
- Category: Games and mods
- Platform: Nintendo 64 to Game Boy Advance
- Models: Claude Opus 5.5
- Tools: GBA porting, physics tests
- Outcome: Partial
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: no
- Author: [Kodoque1](https://github.com/Kodoque1)
- Added: 2026-10-20
- Updated: 2026-10-20
- Sources reviewed: 2026-10-20 (editor)

## What was done

This project adapts Super Mario 64's movement and collision code to the Game Boy Advance's 16.78 MHz ARM7, which has no floating-point unit. A software-rendered demo wraps the adapted gameplay in four levels. The default demo uses collision geometry and a wooden figure; an optional import step uses assets from a ROM supplied by the user.

### How it was done

The README explicitly credits Claude Opus 5.5 with writing the code, test harness and engineering notes. The project uses the human-made SM64 decompilation as its behavioral reference and compares Mario's state bit for bit against that reference. Optimization work is checked through frame replays, collision queries, emulator cycle timing and a second cycle-oriented emulator.

### Results

The project reports an average 4.9× speedup for the movement code while preserving exact results, plus a four-level demo that reaches 30 fps on 99% of frames in a scripted emulator tour. A separate scripted check compares Mario's position after every frame. The author says physical GBA hardware has not yet been tested. The ROM is built locally; none is included in the repository.

### Reproduce

With Docker, build the provided image, then run make fetch, make test, make gba-opt-test and make demo; open build/demo/sm64demo.gba in mGBA. The default demo does not require a game ROM. To display the original model and levels, use your own compatible ROM with make import ROM=path/to/your/sm64.z64 and rebuild the demo.

## Reproduce it

For the emulator demo, use Docker and the repository’s Dockerfile, then run make fetch && make test && make gba-opt-test && make demo. Open build/demo/sm64demo.gba in mGBA. The default build includes no ROM assets; importing a user-supplied sm64.z64 is optional and only used for the original model and level meshes. Physical GBA hardware is not yet reported as tested.

## What the commit history shows

3 of 3 commits in the public repository credit an AI, over 1 day between 2026-10-18 and 2026-10-18. Credited: Claude Opus 5.5 (3).

Measured by this site from public git history.

## Questions about Super Mario 64

### What is the Super Mario 64 project?

Claude Opus 5.5 wrote the code, test harness and engineering notes for a GBA adaptation of Super Mario 64 movement and collision. Tests report bit-exact physics and a four-level demo in emulators; physical GBA hardware has not yet been tested. It is listed under Games and mods for Nintendo 64 to Game Boy Advance.

### Which AI model was used on Super Mario 64?

The entry names Claude Opus 5.5. The tools named alongside are GBA porting and physics tests.

### Did the AI reverse engineering of Super Mario 64 work?

Its author reports that it partly works. Checks recorded: source available yes, repro steps yes, verified by others no.

### Is the source code for Super Mario 64 available?

Yes. The code, patches or tooling are public: https://github.com/Kodoque1/sm64-gba. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/Kodoque1/sm64-gba)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Kodoque1 (2026). Adapted Super Mario 64 movement code for GBA with Claude. Reversed with AI. https://reversedwithai.com/p/super-mario-64-gba-ai-port
