A simple CHIP-8 emulator/interpreter written in Zig, using Raylib for graphics.
- All 35 instructions.
- Supports running of CHIP-8 & ETI-660 ROMS.
- Supports the 16-key hex keyboard.
- Zig 0.15.1
-
Clone the repository:
git clone https://github.com/nxck2005/chip8.git cd chip8 -
Build the project:
zig build
-
Run the emulator:
zig build run -- <path_to_rom>
For example:
zig build run -- roms/Breakout.ch8
The emulator uses the following keyboard layout for CHIP-8's 16-key hexadecimal keypad:
| Key | CHIP-8 Key |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | C |
| Q | 4 |
| W | 5 |
| E | 6 |
| R | D |
| A | 7 |
| S | 8 |
| D | 9 |
| F | E |
| Z | A |
| X | 0 |
| C | B |
| V | F |
This project is licensed under the MIT License. See the LICENSE file for details.
