Nestur is an NES emulator and a work in progress. There are still some minor bugs and the audio is kind of scratchy. I've mostly tested on Donkey Kong, Super Mario Bros., and Zelda so far. There are plenty of full-featured emulators out there; this is primarily an educational project but I do want it to run well. SDL2 is the only dependency, it's NTSC timing, and contains no
Button | Key ___________________ | A | D | | B | F | | Start | Enter | | Select | R-Shift| | Up | Up | | Down | Down | | Left | Left | | Right | Right | -------------------
The code aims to follow the explanations from the NES dev wiki where possible, especially in the PPU, and the comments quote from it often. Thanks to everyone who contributes to that wiki/forum, and to Michael Fogleman's NES and Scott Ferguson's Fergulator for getting me unstuck at several points.
Compilation and Use
- Install Rust: https://www.rust-lang.org/tools/install
- Configure SDL2 for your platform:
SDL2.dllis already in the repo so you don't have to do anything.
- macOS: Install Homebrew and run
brew install sdl2
sudo apt-get install libsdl2-dev(or whatever your package manager is)
cd nestur/ && cargo build --release
nestur.exewill be in
- Run with
$ ./nestur path/to/rom_filename.nesor
> nestur.exe path\to\rom_filename.nes.
- If the game uses battery-backed RAM (if it can save data when turned off), a save file like
rom_filename.savwill be created in the same folder as the ROM when the program is exited. When Nestur is run again, it will look for a file matching the ROM name, with a
.savextension instead of
More mappers (only mappers 0 (NROM) and 1 (MMC1) implemented so far)
DMC audio channel, high- and low-pass filters
Save state/load functionality
Player 2 controller?