chip-8

chip-8 emulator

Clone

git clone https://git.jun.sh/chip-8.git

Demo

Overview

This is a CHIP-8 Virtual Machine implementation in C, uses SDL for the input and window. This was only done as a learning exercise to implement the fundamental opcode fetch -> decode -> execute lifecycle and learn some basic emulation stuff. Do not use this as a reference implementation.

Local Setup

You do need to install SDL on your system. So on something like fedora that would be.

sudo dnf install SDL2-devel -y

The Makefile just links against that. There is a breakout.ch8, it’s specifically Breakout by Caremlo Cortez, 1979. More roms can easily be found on the interwebs.

make
./chip8 /path/to/rom_file.ch8

Resources