A Chip-8 emulator written in C using Raylib for graphics and audio.
- Emulates classic Chip-8 instructions and timers
- Loads and runs Chip-8 ROMs
- Keyboard input mapped to Chip-8 keypad
- Audio beep support
- Simple GUI for ROM selection and debugging
- C compiler (GCC/Clang)
- CMake
- Clone the repository:
git clone git@github.com:a-mango/chip8.git cd chip8 - Build with CMake:
mkdir build && cd build cmake .. make
- Run the emulator:
./bin/chip8 <path-to-rom>
- Place your Chip-8 ROMs in the
rom/directory. - Launch the emulator and select a ROM to play.
- Use your keyboard to control the game (mapped to Chip-8 keys).
src/- Source codeinclude/- Header filesrom/- ROM filesres/- Resources (fonts, audio)doc/- Documentation
- Key may get stuck on press (fixed: improved keypress handler logic)
clock_functions missing intime.h(fixed: updated C standard to C11)
This project is licensed under the MIT License.
- Raylib for graphics and audio
- Cowgod's CHIP-8 Technical Reference
- The emulator programming community