Recompilation · a console game on PC
MKTrilogyN64Recomp
by cultofblue · github.com/cultofblue/MKTrilogyN64Recomp
21stars on GitHub
October 28, 2026last update
C++language
—license
What it is
Native recompilation of Mortal Kombat Trilogy for N64
From its README: Project for decompiling and statically recompiling Mortal Kombat Trilogy (USA) (Rev 2) for the N64 into a native Windows program, using splat (disassembly/decomp), N64Recomp/RSPRecomp (recompilation), and N64ModernRuntime + RT64 (runtime/renderer).
- ROM identified and verified (USA Rev 2, big-endian, CIC-6102, libultra 2.0D). See docs/ROMMAP.md.
- Full memory map recovered from the game's own overlay tables: the main segment plus 46 overlays (24 contain code, 22 are data-only).
- ROM split with splat: 3,891 functions disassembled into asm/ (with a linker script), ready for matching decompilation into src/.
- 185 libultra/libc/audio functions named in symboladdrs.txt.
- CPU code recompiled with N64Recomp: 3,777 functions as C in RecompiledFuncs/. Of the rest, 105 are libultra functions the runtime replaces and 9 are hand-writte
- Audio microcode (naudio aspMain) recompiled with RSPRecomp into rsp/aspMain.cpp.
- Host app (src/main/): SDL2 window, RT64 renderer, SDL audio with resampling, keyboard plus up to 4 gamepads mapped to N64 controllers. It finds the ROM on first
- Graphics: MKT's microcode is an exact hash match for RT64's "F3D SDK 2.0E", so RT64 runs it natively.
- Game-specific engine work (src/game/), all explained in "How it runs" below.
- Two RT64 fixes (patches/rt64-mkt-fixes.patch, applied automatically by setup).
Games
Get it
Latest release: v1.0.0 · October 28, 2026
Port Tracker never links downloads. Get it only from the project’s own repository and its Releases page; files offered in comments or on file hosts are a common scam.