Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Software:Super Mario 64

From ReverseEngineering.wiki
Software
Developer Nintendo EAD
Publisher Nintendo
Platforms Platform:Nintendo 64
Versions JP, US, EU, Shindou (SH), iQue Player (CN)
On this wiki Facts · Code · Notes · Topics

3D platformer by Nintendo EAD (1996, Nintendo 64). The n64decomp/sm64 project rebuilds the Japan, North America, Europe, Shindou and iQue Player releases byte for byte.

Overview

The decompilation (https://github.com/n64decomp/sm64) builds five ROMs, selected with make VERSION=<jp|us|eu|sh|cn>. SHA-1 of each matching ROM (README and sm64.*.sha1): see the Build pages. Assets are extracted from the user's own ROM (baserom.<VERSION>.z64).

Toolchain

  • Default compiler: the SGI IRIX ido 5.3 C compiler (-O2, -G 0, -mips2, -non_shared -Wab,-r4300_mul -Xcpluscomm -Xfullwarn -signed -32), run either through qemu-irix or as a statically recompiled copy (tools/ido-static-recomp). COMPILER=gcc builds a non-matching ROM.
  • Library code (libultra, lib/src/math) uses per-file overrides such as -mips2, -mips3 -32 for the 64-bit long-long routines (ll%.o).
  • iQue Player files use an egcs build (tools/ique_egcs) with -mcpu=r4300 -mgp32.
  • Audio and level data are produced by tools in tools/ (sequence, sample bank and sky conversion).

See Platform:Nintendo 64 and Tool:Splat.

Code & repositories

  • https://github.com/n64decomp/sm64 @ 9921382a68bb0c865e5e45eb594d9c64db59b1af · license: CC0-1.0
    Matching decompilation of Super Mario 64 (jp, us, eu, sh, cn). Useful without building: README and sm64.*.sha1 (SHA-1 of every ROM), Makefile (IDO 5.3 flags, per-file overrides, iQue egcs), assets.json.
    Tested on: source read, not run: Read at commit 9921382: README, Makefile, sha1 files; not built · checked 2026-10-18; last activity 2024-02-04