chip8

A simple C CHIP8 VM.
git clone git://git.vgx.fr/chip8
Log | Files | Refs | README

README.md (1888B)


CHIP-8 Emulator

This is a simple C CHIP-8 emulator.

Build

Using SDL2:

# with GNU make
make MEDIA=sdl

# Or directly
cc chip8.c media-sdl.c -o chip8 $(sdl2-config --cflags --libs)

Using Raylib:

# with GNU make
make MEDIA=raylib

# Or directly
cc chip8.c media-raylib.c -o chip8 $(pkg-config --cflags --libs raylib)

Using GLFW and OpenGL ES 2.0 for graphics rendering, and miniaudio for the buzzer:

# with GNU make
make MEDIA=glfw

# Or directly
# with "-lglfw -lGLESv2" for GLFW and OpenGL ES
# and "-ldl -lm -lpthread" for miniaudio on Linux
cc chip8.c media-glfw.c -o chip8 -lglfw -lGLESv2 -ldl -lm -lpthread

Run

Get CHIP-8 roms, for example:

Run the emulator:

./chip8 path/to/rom.c8

Details