Skip to content
forked from spieglt/nestur

The NES you left outside in the rain but let dry and still kind of works

Notifications You must be signed in to change notification settings

maslabgamer/nestur

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nestur

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.

  • SDL2 is the only dependency
  • no use of unsafe
  • NTSC timing
  • supports mappers 0-4 which cover ~85% of games

Controls

 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

  1. Install Rust
  2. Have a C compiler
  3. Install CMake
    • Linux: sudo apt install cmake
    • Mac: install Homebrew and run brew install cmake
    • Windows
  4. cd nestur/ && cargo build --release (be sure to build/run with the release flag or it will run very slowly)
  5. The nestur executable or nestur.exe will be in nestur/target/release.
  6. Run with $ ./nestur path/to/rom_filename.nes or > nestur.exe path\to\rom_filename.nes.
  7. If the game uses battery-backed RAM (if it can save data when 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.

To do

  • DMC audio channel, high- and low-pass filters

  • Better GUI and distributable solution

  • Save states

  • Player 2 controller?

Known problem games

  • None currently, please report any issues

Please also check out Cloaker and Flying Carpet!

About

The NES you left outside in the rain but let dry and still kind of works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%