Skip to content

A Chip-8 emulator written in C++. A fun little project :)

Notifications You must be signed in to change notification settings

kraftpunk97/CHIP8-Emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHIP-8 Emulator

This is a CHIP-8 emulator designed in C++.

Build

The project requires the following prerequisites for a successful build.

NOTE- The project is designed to be built for Linux/Unix systems. It can be built for Windows as well using the WSL environment. Please ensure that you install the Linux version of these dependencies when working with WSL.

From the project directory, use the following commands to build the executable

cmake -S . -B build
cd build
make

Run

Use the following command to run the executable

./chip8 path/to/rom

The emulator comes with a verbose mode that will print the relevant details of each instruction that is executed. Use the --v flag to enable verbose mode.

./chip8 path/to/rom --v

Controls

The emulator uses a hexadecimal keypad to enter inputs for programs that allow for it. The mapping is shown below.

 1 | 2 | 3 | C          1 | 2 | 3 | 4  
---+---+---+---        ---+---+---+---
 4 | 5 | 6 | D          Q | W | E | R
---+---+---+---   =>   ---+---+---+---
 7 | 8 | 9 | E          A | S | D | F 
---+---+---+---        ---+---+---+---
 A | 0 | B | F          Z | X | C | V

The Esc key can be pressed at anytime to immediately close the application.

Credits

About

A Chip-8 emulator written in C++. A fun little project :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published