The NES (emulator) you left outside in the rain but let dry and still kind of works
Nestur is an NES emulator. There are plenty of full-featured emulators out there; this is primarily an educational project but it is usable. There may still be many bugs, but I'm probably not aware of them so please submit issues.
unsafe
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.
Button | Key
___________________
| A | D |
| B | F |
| Start | Enter |
| Select | R-Shift|
| Up | Up |
| Down | Down |
| Left | Left |
| Right | Right |
-------------------
F2: reset console
F5: save game state
F9: load most recent save state
If the game is called mygame.nes
, the save state files will be called mygame-#.dat
. To load any previous save state, drag and drop a .dat
file onto the window.
Double-click or run the executable from a terminal by itself to launch with instructions. Then click Ok and drag a (iNES/.nes
) ROM file onto the window. Or, drag and drop a ROM file onto the executable to run it directly, or use the path to the ROM file as the first argument to the terminal command.
If the game uses battery-backed RAM (if it can save data when the console is turned off), a save file like rom_filename.sav
will 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 .sav
extension instead of .nes
.
sudo apt install build-essential
cd nestur/ && cargo build --release
(be sure to build/run with the release flag or it will run very slowly)nestur
executable or nestur.exe
will be in nestur/target/release
.support other controllers?
more mappers?
better save file organization?
Please also check out Cloaker and Flying Carpet!