Implemented with the original CHIP-8 specs in mind.
As the options to enable/disable some quirks from variants are added, implementations for S-CHIP and XO-CHIP might be included.
Compiled and tested on Linux only. Has SDL2 as dependency.
Just run make
while in the project directory.
chip8 PATH [--freq <int>] [--sound <double>] [--bg "#RRGGBB"] [--fg "#RRGGBB"]
note: after running make
the binary file is saved in the bin/
directory.
Example:
bin/chip8 examples/tingo.ch8 --freq -1 --bg "#000015" --fg "#FFD077" --sound 170
A sine wave sound is played for the buzzer. You can adjust its frequency with the --sound <double>
flag.
This is the CHIP-8 keypad layout on a QWERTY keyboard:
QWERTY CHIP-8
[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]