This project is a CHIP-8 interpreter written in C, using SDL2 for graphics.
- GCC
- SDL2 development libraries
To install SDL2 on Linux (Ubuntu/Debian), run:
sudo apt-get install libsdl2-devOpen a terminal in the project folder and run:
makeThis will create the executable chip8.
To clean up build files:
make cleanRun the interpreter with the path to a CHIP-8 ROM:
./chip8 games/PONGThe CHIP-8 uses a 16-key hexadecimal keypad.
This interpreter maps the CHIP-8 keys to your keyboard as follows:
| CHIP-8 Key | Keyboard Key |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| C | 4 |
| 4 | Q |
| 5 | W |
| 6 | E |
| D | R |
| 7 | A |
| 8 | S |
| 9 | D |
| E | F |
| A | Z |
| 0 | X |
| B | C |
| F | V |
src/— Source codegames/— CHIP-8 ROMs for testing