Dhole / chip8-zig

Chip8 emulator implemented in Zig as an exercice to learn Zig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chip8-zig

This is a Chip8 emulator programmed in Zig. It's the first project I've written in Zig after learning the language. The code structure is basically a port of my Chip8 emulator programmed in Rust

Building

This project uses the gyro package manager. To build, first install gyro, and then do:

gyro build

gyro will pull the Zig dependencies which is only zig-clap, a command line argument parsing library.

For video, sound and key events I'm using SDL2 leveraging Zig's C interoperability. This means that to build this project you'll need the SDL2 libraries and headers installed in your system.

Usage

Usage: ./zig-out/bin/chip8-zig [-h] [-s <NUM>] <ROM>
	-h, --help       	Display this help and exit.
	-s, --scale <NUM>	Scaling integer value.

Screenshot

License

GPLv3

About

Chip8 emulator implemented in Zig as an exercice to learn Zig

License:GNU General Public License v3.0


Languages

Language:Zig 100.0%