A NES emulator in Rust. Written as a learning project, to learn a) Rust and b) how emulators work.
Build with cargo build --release
and then run the nes
binary with a ROM as the first argument, or simply run with cargo run -- my/nes/rom.nes
.
Hard-coded at the moment.
Up: W
Left: A
Down: S
Right: D
A: L
B: K
Start: Enter
Select: Space
Oh god no. This is a toy project that I wrote for my edification. If you actually want to play games, use something that people actually maintain.
All of these things mostly work. :)
- CPU (
nestest
matches golden log) - PPU backgrounds (Donkey Kong title screen)
- PPU sprites (Donkey Kong title screen sprite)
- Keyboard controller input (Donkey Kong playable)
- PPU scrolling (Super Mario Bros. playable)
- INES Mapper 001 (Final Fantasy playable)
- INES Mapper 002 (Megaman playable)
- 8x16 sprites (Castlevania playable)
- APU audio
- INES Mapper 004 (Super Mario Bros. 3 playable)