A simple CHIP-8 interpreter made using C and SDL2.
- SDL2
-
Make sure SDL2 is installed in your system. If not, install it on your system:
-
Clone this repository & navigate to it
git clone git@github.com:codexagon/chip8-interpreter.git
cd chip8-interpreter- Compile the binary
gcc -o chip8 *.c -lSDL2-
Download a CHIP-8 ROM file
-
Run the compiled binary
./chip8 <downloaded-rom-file>Microcomputers running CHIP-8 in the mid-1970s had a hex keypad of 16 values ranging from 0 to F. Its layout was:
| 1 | 2 | 3 | C |
|---|---|---|---|
| 4 | 5 | 6 | D |
| 7 | 8 | 9 | E |
| A | 0 | B | F |
These keys are mapped to the left side of a standard QWERTY keyboard, like
| 1 | 2 | 3 | 4 |
|---|---|---|---|
| Q | W | E | R |
| A | S | D | F |
| Z | X | C | V |
To exit the program, press Enter.

