SkillAgentSearch skills...

Chip8emulator

A Chip-8 emulator written in C with raylib

Install / Use

/learn @nathhB/Chip8emulator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Chip-8 emulator

A Chip-8 emulator written in C with raylib.

chip-8 screen1 screen2 screen3

Controls

Chip-8 uses a 16 keys keyboard mapped as such:

1 2 3 4

A Z E R

Q S D F

W X C V

Actual controls depend on the ROM itself.

Building

cmake -DRAYLIB_LIBRARY_PATH=<PATH TO RAYLIB LIBRARY FILE> -DRAYLIB_INCLUDE_PATH=<PATH TO RAYLIB HEADER>
make
ctest # run unit tests

If you want to use the built in ROM picker, you need to provide a path to a directory containing your Chip-8 roms to the cmake command:

-DROMS_DIR=<PATH TO ROMS DIR>

The emulator can be compiled with emscripten to run in a web browser.

Running

./emulator [ROM_PATH]

If ROM_PATH is provided, the emulator will run the specified ROM, otherwise it will let you pick a ROM from the provided directory (see Building section).

Test ROMS and resources

Related Skills

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated5mo ago
Forks1

Languages

C

Security Score

87/100

Audited on Oct 20, 2025

No findings