A lightweight, portable pure C99 NES emulator library.
Just type make at the root directory, you will see some binary of examples for usage.
cd libxnes
makeTo compile the example, you need to install SDL2, In ubuntu systems:
sudo apt-get install libsdl2-devAfter compiling all of files, you can running an example or drag some nes file to xnes:
cd examples/linux/output/
./xnes <rom.nes>| Description | Player 1 | Player 2 |
|---|---|---|
| UP | W | Arrow Up |
| DOWN | S | Arrow Down |
| LEFT | A | Arrow Left |
| RIGHT | D | Arrow Right |
| A | K | Numpad 6 |
| B | J | Numpad 5 |
| SELECT | Space | Numpad 8 |
| START | Enter | Numpad 9 |
| Description | Key |
|---|---|
| RESET | ESC |
| SLOW SPEED | F1 |
| FAST SPEED | F2 |
| REWIND | R |
| Description | Joystick 1 | Joystick 2 |
|---|---|---|
| UP | Up | Up |
| DOWN | Down | Down |
| LEFT | Left | Left |
| RIGHT | Right | Right |
| A | A | A |
| B | B | B |
| SELECT | Select | Select |
| START | Start | Start |
| REWIND | L | L |
| FAST SPEED | R | R |
This library is free software; you can redistribute it and or modify it under the terms of the MIT license. See MIT License for details.
















