makestatic/chip-8
terminal-based CHIP-8 emulator written in Zig
A terminal-based CHIP-8 emulator written in Zig.
IBM Logo. Source
Test opcode. Source
CHIP-8 was created by Joseph Weisbecker in the mid-1970s. It’s a simple programming language with hexadecimal instructions that run on a virtual machine. The language was designed to make it easier to create games for the COSMAC VIP microcomputer.
This project is an almost complete reimplementation of the CHIP-8 virtual machine. Although sound is not implemented yet.
IMPORTANT Zig version
0.15.1
or higher is required. Since the0.14.1
release, many Standard Library APIs have been changed, revamped, or removed. See the release notes for details.
zig build -Doptimize=ReleaseSafe
Run the emulator:
./zig-out/bin/chip8 <rom file>