A Nintendo Entertainment System emulator implemented in Rust
TBC
Usage: res [OPTIONS] --rom <ROM>
Options:
-x, --window-w <WINDOW_W> Width of emulator window [default: 256]
-y, --window-h <WINDOW_H> Height of emulator window [default: 240]
-p, --pixel-scale <PIXEL_SCALE> Pixel scaling factor [default: 3]
-r, --rom <ROM> path/to/rom
-h, --help Print help
-V, --version Print version
| Keyboard | NES |
|---|---|
| Up arrow | D-Pad up |
| Down arrow | D-Pad down |
| Left arrow | D-Pad left |
| Right arrow | D-Pad right |
| Space bar | Select |
| Return | Start |
| A | A |
| S | B |
First install the SDL development libraries. Either with your package manager, example on Ubuntu:
$ sudo apt-get install libsdl2-devOr by visiting the SDL website.
Next you will need to install the Rust toolchain, see the Rust website for instructions.
Lastly, install the just command runner. This is technically optional, but it contains shortcuts for building, linting etc that will be referenced below.
A normal release build can be created via:
$ just releaseA development/debug build can be created via:
$ just debugThe emulator can then be run from the target/[debug|release]/res relative to the
root of the repository