A very fast CHIP-8 written in less than 500 source lines of C code.
First make
the emulator:
$ make
Then run it by passing it a CHIP-8 ROM from the command line, i.e.
$ ./chip8 <ROM>
where <ROM> is the path to a CHIP-8 ROM.
$ make test
You should hear a short beeping sound and see this screen if all the tests pass:
- Thanks to Cowgod for making the first (as far as I know) publicly available technical reference
- I also referred to James Griffin's implementation a few times for checking my implementation of some of the more ambiguous instructions (e.g,
Fx55
andFx65
) and for a quickstart into using SDL - Lazy Foo' Productions for great tutorials on SDL
- Finally, NinjaWeedle's fork of corax89's CHIP-8 test rom made it easy (read: possible) to test the audio, video, and logic of my emulator