chip-8

chip-8 emulator

Clone

Loading...

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.

  • Supports running .ch8 files, with the resolution scaled to 20x from the original.
  • Timer and sound are not yet implemented, but adding them is straightforward. The original CHIP-8 system produced a simple 1 bit beep sound.

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