This is a Chip8 emulator written in Rust, capable of running most Chip8 games.
To run the emulator, ensure you have the following installed on your system:
-
Rust: Follow the installation instructions from the official Rust website.
-
SDL2 Library: . On Ubuntu, you can install it by running:
sudo apt-get install libsdl2-dev
Once the prerequisites are installed, follow these steps:
-
Clone this repository:
git clone https://github.com/Juannbel/chip8-emulator.git cd chip8-emulator -
Run the emulator with the following command:
cargo run --release <path_to_rom>
Replace
<path_to_rom>with the path to the Chip8 ROM you want to run. Sample ROMs are available in theromsdirectory within the project.
| Chip8 Keypad | Emulator keyboard Mapping | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
→. IPF += 1 (instructions per frame)
←. IPF -= 1
↑. RATE += 1
↓. RATE -= 1
- Cowgod's Chip-8 Technical Reference v1.0: This was the primary resource used to implement the emulator. You can access it here.
- Chip8 Test Suite: Test ROMs used to verify emulator functionality were sourced from the Chip8 Test Suite repository.

