CHIP-8 Interpreter using Go Programming Language
CHIP-8 is an interpreted minimalist programming language that was designed by Joseph Weisbecker in the 1970s for use on the RCA COSMAC VIP computer.
So CHIP-8 is actually a language (often mislabelled as emulator) and this project is about interpreting that language (CHIP-8 Interpreter).
However I also made a mistake at the start of this project, I also thought that CHIP-8 is an emulator. The package in this project even named emulator
.
Sadly, I am too lazy to change it.
- Download the binary from Release Page
- Run the program
./gochip8 <path to rom file>
- Download and Install Go
- Follow instruction on go-sdl2 to setup SDL on your machine
cd
to the project directory andgo mod tidy
- Build using
go build -o gochip8
- The binary
gochip8
should be created. Run the program./gochip8 <path to rom file>
This project use chip8-test-suite for testing. Here is the results:
Test | Result |
---|---|
CHIP-8 splash screen | ok(1/1) |
IBM logo | ok(1/1) |
Corax+ opcode test | ok(22/22) |
Flags test | ok(14/14) |
Quirks test | not ok(5/6) |
- 100% Test passed
- Add menu bar in the UI
- Add support for debugging