This is a CHIP-8 Virtual Machine built in Python.
These were the most useful CHIP-8 references used during development:
You need to have Python 3.10+ installed, and SDL2 available on your system.
brew install sdl2If necessary, ensure your library path includes SDL2:
export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib"sudo apt update
sudo apt install libsdl2-dev pkg-configMake sure you also have pip and virtualenv installed:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtTo use this project, follow these steps:
- Clone the repository to your local machine:
git clone <repository_url>
cd <repository_name>- Run the program with the path to your game file:
python main.py /path/to/game.ch8To enable debug logging and save the output to a file (debug.log), use the following command:
DEBUG=1 python main.py /path/to/game.ch8 > debug.log 2>&1You can find public-domain CHIP-8 games here.
This project is released under an open license for educational and personal use.
