This is a super simple CHIP-8 emulator weekend project. It uses SDL2 and can be transpiled to WASM using EMScripten to deploy on a website.
Demo: https://chip8.navennec.net/
Fully functional on Linux, Windows, Firefox, not tested on other platforms.
git clone [email protected]:atomheartother/chip8.git
- Install
cmake
mkdir build && cd build && cmake .. && cmake --build .
Same as above but you'll want emcmake
from the emsdk
. Then:
emcmake cmake .. && cmake --build .
./chip8 <rom file> [instructions per second]
(The default value for instructions per second is 350).
- On Windows, the beeping sound is way too low
- Sometimes the screen disappears or doesn't draw anymore in browser if you keep loading new ROMs.