This is a CHIP-8 emulator written in C++. It uses Raylib for graphics and Glad for OpenGL function loading. This project was developed over a few days following the CHIP-8 Technical Reference (http://devernay.free.fr/hacks/chip8/C8TECH10.HTM) and a wonderful blog written by Tobias Langhoff (https://tobiasvl.github.io/blog/write-a-chip-8-emulator/).
This project and it's dependencies can be built using CMake.
Example of Chip-8 Emulator playing Space Jam:
- Emulates CHIP-8 instructions
- Displays graphics using Raylib
- CMake 3.10 or higher
- A C++17 compatible compiler
To build the project, simply follow these steps:
- Run CMake to build your Makefile:
cmake .
- Enter
make
in your terminal to build the project tochip-8
To run the project, please download a valid CHIP-8 ROM (.ch8 file) from https://github.com/kripod/chip8-roms.
Usage: ./chip-8 [options] <ROM file>
Options:
--width <width> Set screen width (default: 640)
--height <height> Set screen height (default: 320)
--fps <fps> Set frames per second (default: 60)
This project is licensed under the MIT License - see the LICENSE file for details.