A simple CHIP-8 emulator in Python, developed as a personal learning project.
- Python 3.x (Tested with Python 3.12.8)
- NumPy (for CPU registers emulation)
- Pygame (for display and input handling)
- Clone this repository:
git clone https://github.com/libratechw/Chip8Python.git
- Navigate to the project directory:
cd Chip8Python
- Install the required dependencies:
pip install -r requirements.txt
To run the emulator, use the following command:
python main.py <path_to_rom>
Replace <path_to_rom>
with the path to the CHIP-8 ROM file you want to run.
You can also specify additional options:
--scale
: Screen scale factor (default is 10)--clock-speed
: CPU clock speed in Hz (default is 500 Hz)
Example:
python main.py roms/pong.ch8 --scale 15 --clock-speed 600
MIT License.