nes_test 0.1.2

This is an example application for github.com/blahness/nes.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Summary

This is an example application for github.com/blahness/nes.

Dependencies

  github.com/blahness/nes/
  github.com/DerelictOrg/DerelictSDL2/

Installation

For a pre-built package

For Windows there are stand-alone binary builds available at the GitHub release page. Note: they were compiled with DMD so they're not very optimized.

Fetching with Dub

  dub fetch nes_test

To run:

  dub run nes_test --build=release -- <rom>

Or for a 64-bit version:

  dub run nes_test --arch=x86_64 --build=release -- <rom>

\

Building from source

Clone or download this repo, cd to the folder that contains the source folder & run:

  dub build --build=release

Or for a 64-bit version:

  dub build --arch=x86_64 --build=release

Notes

If you're on Windows I'd also add --arch=x86_mscoff when using dub run or build to create 32-bit versions. The linker produces a very slow executable otherwise.

The app expects the SDL2 runtime binaries (minimum version 2.0.5) to be available. You can find them here: https://www.libsdl.org/download-2.0.php.

Usage

  nes_test <rom>
  Use nes_test -h for more options.

The app will create a save & state folder in its current directory on first run if they don't already exist. Battery backed RAM is saved only on program exit.

Controls

Joysticks are supported, although the button mapping is currently hard-coded. Keyboard controls are indicated below.

| Nintendo | Emulator | | --------------------------- | -------------------- | | Up, Down, Left, Right | Arrow Keys or WSAD | | Start | Enter | | Select | Right Shift or Space | | A | Z or N | | B | X or M | | Fullscreen/Windowed Toggle | F11 | | Exit Fullscreen | Escape | | Reset | Ctrl + R | | Save State | F5 | | Load State | F1 |

Authors:
Blahness
Dependencies:
derelict-sdl2, nes
Versions:
0.1.2 2018-Feb-04
0.1.1 2018-Feb-02
0.1.0 2018-Feb-02
~master 2018-Feb-04
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 9 downloads this month

  • 9 downloads total