An independent, open-source NES and Famicom emulator written in Rust. CPU, PPU, APU, memory bus, controllers, cartridge parsing and mappers - all implemented in this repository. No mocks, no wrappers around another emulator.
A scale from 0 to 10, scored from working code and passing tests rather than from a plan. Six steps are closed, step seven is open.
Levels 1 to 6 are closed: a ROM parses, the 6502 executes, the PPU draws, the APU mixes, the desktop app runs, and 73 mapper ids switch banks. 102 tests cover that surface and CI is green on them.
Level 7 is timing accuracy. NTSC and PAL frame timing and the scroll pipeline are correct, but the PPU still composes a scanline in one step and MMC3 clocks its IRQ per rendered line instead of from an A12 watch. Levels 8 to 10 are input, compatibility testing and a real release.
Empty repository. Nothing loads and nothing runs.
iNES and NES 2.0 headers parsed and validated, trainers skipped, mapper id resolved, unlisted mappers rejected with a clear error.
6502 core with every official opcode, common unofficial ones, page-cross and branch penalties, NMI, IRQ, reset and OAM/DMC DMA stalls.
Background, sprites in 8x8 and 8x16, scrolling, nametables, attributes, palettes, sprite 0 hit and vblank NMI.
Two pulses, triangle, noise and DMC through a non-linear mixer at 44.1 kHz, wired to cpal. Compiled, not heard on this headless machine.
Library, game view, settings, rebindable keys, achievements and 10 save-state slots per ROM in a versioned JSON format.
73 mapper ids: 16 hand-written boards including MMC3, MMC5, VRC6 and TxSROM, plus 57 more through a shared extra-board engine, multicarts included.
NTSC and PAL frame timing are right and the scroll pipeline was fixed after 0.5.0. Missing: per-dot PPU output and an exact MMC3 A12 IRQ filter.
Gamepad input is done. macOS and Linux builds and a published v0.5.0 tag remain. The newest packaged binary is still the v0.3.0 Windows zip.
Run a broad, legally redistributable ROM library and fix what breaks. No commercial game has been validated yet.
Per-dot PPU, rewind, netplay, NSF playback, builds for every platform, and a published compatibility table behind the claim.
Conservative counts. "Implemented" means the code exists and is covered by the tests in tests/.
Each milestone was pushed to main with README and CHANGELOG updates and verified green in CI.
Status is deliberately conservative. Implemented means the code exists and is covered by tests.
Validates signature, sizes and mapper. Reads NES 2.0 size nibbles. Skips trainers.
All official 6502 instructions, common unofficial ones, addressing modes, page-cross and branch penalties, NMI, IRQ, reset, DMA stalls.
2 KB RAM mirroring, PPU, APU and controller registers, cartridge mapping.
Background, sprites 8x8 and 8x16, scrolling, nametables, attributes, palettes, sprite 0 hit, vblank, NMI, emphasis.
Two pulses, triangle, noise, DMC playback, frame sequencer, frame IRQ, non-linear mixer at 44.1 kHz, plus MMC5 and VRC6 expansion audio.
Two standard controllers with correct strobe and shift behavior.
73 ids. 16 hand-written boards (NROM, MMC1, UxROM, CNROM, MMC3, MMC5, AxROM, MMC2/MMC4, Color Dreams, VRC6, GxROM, Camerica, TxSROM 118, Quattro) plus 57 more through a shared extra-board engine, from CPROM and the Jaleco, Namco, VRC2, VRC3, VRC4, Sunsoft and Irem boards to the address-latch multicarts. Unlisted ids report a clear error instead of guessing.
cpal on Windows and macOS. Runtime-loaded ALSA on Linux with no dev headers required.
Versioned JSON format, ROM fingerprint check, 10 slots per ROM, atomic writes.
Persisted in the per-user configuration directory.
Dark desktop UI with library, game view, settings, save states, achievements, about.
Up to two controllers through gilrs: D-pad or left stick, menu navigation, bumpers switch tabs. Button layout is fixed in this build.
Game Genie codes, RAM freeze codes and a memory search to find lives or invincibility in any game. Saved per game.
Header-detected PAL runs 312 scanlines at 3.2 dots per CPU cycle and 50.007 Hz.
On the roadmap.
73 mapper ids, each with versioned save-state support. Bold ids are hand-written boards; the rest share one extra-board engine.
What is exact and what is approximated, stated plainly.
cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test --all-targets.
The version on main right now. Source only: no v0.5.0 tag or binary has been published yet, so the newest packaged build is still the v0.3.0 Windows zip.
MMC5 fill-mode nametables, VRC6 CHR banking modes and cycle-counting IRQs, Quattro mapper 232 and PAL timing, plus the PPU scroll fix, 57 more mappers and the UI refresh that landed on main after the milestone. CI is green on all 90 tests.
Latest and stable are the same build right now: v0.3.0, a Windows x64 zip of 5,616,935 B with SHA-256 d04c787c. There is no v0.5.0 tag or binary yet, so this is the newest download. Linux and macOS build from source. Source for the untagged work is on main on GitHub.
Planned work, in no strict order.
Working or not, stated plainly.
| Area | Status | Notes |
|---|---|---|
| Per-dot mid-scanline PPU | Not working | PPU composes a scanline at once |
| Gamepad input | Working | Up to two pads through gilrs; untested on hardware |
| Rewind buffer | Not working | On roadmap |
| NSF playback | Not working | On roadmap |
| Netplay | Not working | On roadmap |
| Dendy timing | Not working | PAL only for now |
| PRG RAM write-protect | Not working | Stored, not enforced |
| MMC5 CL fine scroll | Partial | SL board path only |
| MMC2 and MMC4 sprite latches | Partial | Sprite rows 0 to 7 only |
| Quattro Aladdin submapper | Partial | Outer bits ignored |
| GUI runtime | Unverified | Compiled, not launched in headless VM |
| Audio output | Unverified | Not heard in headless VM |
| Core emulation | Working | 102 tests pass, CI green |
| Save states | Working | Versioned, fingerprinted |
| PAL timing | Working | Header detected |
| Expansion audio | Working | MMC5 and VRC6 |