An interpreter for CHIP-8 written in C++
- Clone the repo
git clone
- Install SDL
- I used this guide for Mac.
- Run
make game
in the project directory to compile the project
The expected usage is ./play <ROM> <Delay>
<ROM>
should contain the path to the ROM file.<Delay>
is the number of milliseconds between emulation cycles.
CHIP-8 Keypad's look like this:
1 2 3 C
4 5 6 D
7 8 9 E
A 0 B F
Here is the mapping of the above to the modern QWERTY keyboard:
1 2 3 4 -> 1 2 3 C
Q W E R -> 4 5 6 D
A S D F -> 7 8 9 E
Z X C V -> A 0 B F
Playing Tetris:
Displaying the IBM Logo:
Here is a link to a library of CHIP-8 games to play.