This is a simple Chip-8 emulator written in C++ using SDL2 library.
Majority of the code has been reused from Austin Morlan's guide.
This is my first attempt of building an emulator.
The program requires SDL2 library to work.
Install it before compiling the source code.
To compile the program from source CMake has to be installed.
- Clone the repository or download & extract the compressed file.
- Open the folder.
- Run the following commands.
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cd build
sudo make install
Running the program is pretty straight forward.
It requires Chip-8 compatible ROM Files.
To load the ROM file run:
./chip8 <Scale> <Delay> <ROM>
# Example: ./chip8 10 1 Test.ch8