emuforge

Nintendo 64 games

A Nintendo 64 emulator in Rust, mostly written from scratch. It needs no BIOS or boot ROM.

NightlyStable

Nightly: 9ba9172, the newest build that passed its checks, from 2026-12-02, for Linux (x86-64).

Stable: there is none yet.

n64emu plays Nintendo 64 games from .z64, .n64 and .v64 files, also in ZIPs. It needs no BIOS, boot ROM or other file. It is new. Status says what works, and what does not.

Where it comes from

n64emu is our own implementation, written from scratch from public documentation and tests, with two parts that are ported, each in a crate of its own:

  • The RDP and the VI's filters, which draw the picture on the GPU, are a port of paraLLEl-RDP, by Hans-Kristian Arntzen (Themaister), under the MIT license.
  • The RSP, the second processor, which most games use for geometry and sound, is a port of the RSP of ares, under the ISC license. Its history names Near, who wrote the first version, Giovanni Bajo, who corrected most of the instructions' corner cases, the registers and the DMA, and invertego, who wrote its timing, with others.

Everything else is ours: the main processor and its floating point unit, the memory and its timing, the console's interfaces, cartridges and their saves, the PIF, controllers and paks, and how a game starts. Our code is MPL-2.0. How it was made says how, and the credits name all that it rests on.

These people and projects found out how this console works, and wrote it down for everybody. They have no part in n64emu, and it could not be there without them. Thank you:

  • Everybody who writes n64brew.dev. Its pages about the memory map, RDRAM and its interface, the MI, the PI, the SI, the AI, the VI, the RDP's command interface, the PIF, the security chips, the joybus, FlashRAM, the Controller Pak and the Rumble Pak are what nearly every part of the console that is ours rests on. The people who measured the memory's times on a console and published them there gave the first numbers that n64emu's model was fitted to.
  • NEC, for the VR4300's public user's manual, which the processor and its floating point unit are written from, and for the data book of its RDRAM chips, which the memory's times come from.
  • Giovanni Bajo and thekovic, for libdragon's own boot code, under the Unlicense. Its source and documentation told us what a game's boot code finds at its start.
  • Themaister, for paraLLEl-RDP, and Near, Giovanni Bajo, invertego and the other authors of ares, for its RSP, as above.
  • The makers of SummerCart64, whose flashcart and its documentation let our own measurement programs run on a console and send their results back.

If somebody is missing or something is wrong, please say so: that comes first.

What we added

It has no base but for the two ported parts, so most of it is ours. Some of what it does:

  • No file of the console maker is needed. Games run their own boot code from the state in which the console's boot program would leave them. Games with the 6105 chip need that program in the RSP's memory, so n64emu does itself what their boot code would leave. That was found by comparing with what the other chips' boot code leaves (our own start). The 6105's answer to a challenge is not there yet.
  • Measurements on a console. Two small programs of ours ran on a console, through a flashcart with USB. They confirmed the floating point unit's default NaN and seven of its rules and corrected one, and gave the time of RDRAM's reads, the time of DMAs, the byte lanes of the bus and the ninth bits of RDRAM. n64emu was changed to fit them, and the pages say where it still does not (how).
  • The security chip and the save chip are found from what the game does, with no list of games (the PIF, cartridges).
  • It does nothing until something could tell. Parts catch up in one go, and loops that wait are passed with the same result. In three games, that took 29 to 54% off the core's time for 600 frames (architecture). Then the RSP was made to run ahead of the processor up to its next use of the bus, and more of the same kind: that took 22 to 45% off the computer's cycles for 900 frames of four games, each step checked frame by frame. These numbers are the core's alone, on one computer. How fast games run in the app now has not been measured (how it was made).
  • The RDP on a real GPU, which the app chooses by itself, with a picture that the window's OpenGL takes from the GPU without a copy, and a render scale of 1x, 2x or 4x that is drawn beside the exact picture, so that the game sees no difference (the RDP).

Work on n64emu

Clone the harness, which has the project's guides and tools, and start your agent in it:

git clone https://github.com/emuforge/harness
cd harness
claude

That starts Claude Code. Any agent that reads AGENTS.md works.

Then ask it about n64emu, or say what to work on:

  • How does n64emu work, and how can I help?
  • What needs doing on n64emu?
  • Run my Nintendo 64 games on n64emu and tell me what broke.
  • I found a bug in n64emu. Help me report it.

To ask questions, that is all you need. To work on something, run ./harness doctor to see what else to install. More about the harness, which also works without an agent.

Compatibility

No results yet.

Part of emuforge

n64emu is one of emuforge's emulators. People and their AI agents build, test and maintain them together.

emuforge is here to show, with working emulators, that this is a good way to make software and belongs in open source.

All of this is written down as ten commandments. Each emulator's status page says which of them it does not keep yet.