No description
- C++ 98%
- CMake 2%
| rom | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||
| README.md | ||
Chip 8 Emulator
Note
This was not vibecoded
Details
A simple CHIP 8 Emulator.
There might be bugs in this, or may not follow the best practices, was made as a learning project
Following resources were used
- Cowgod's Chip-8 Technical Reference V1.0
- Tobais's Guide to Writing a Chip-8 Emulator
- Kripod's Chip-8 ROM Collection
How To Compile and Run
This can be manually compiled through gcc, but I used cmake/make.
First create build/ dir and cd into it
mkdir build
cd build
After that use cmake and make. We use nproc to list CPU Cores for make, which helps it run parallel build jobs according to our CPU cores available
cmake ..
make -j$(nproc)
It will create an executable chip8 in build/ directory.
The command requires the path of the ROM to load
./chip8 'Pong (1 player).ch8'
I personally kept the roms in the dedicated rom folder of the project, but you're free to place them anywhere, the program only cares about the path to load it in.