./<executable-name.exe> <rom-folder-name>/<chip8rom.ch8>
Ex. ./main "games/Tetris [Fran Dachille, 1991].ch8"
This repo comes with a pre-compiled .exe ready to run, but in the case of wanting to re-compile for your respective system, follow the below instructions.
- Clone the repository using
git clone https://github.com/darienmiller88/Chip8-Emulator
- Navigate to
https://www.mingw-w64.org/
and download a 64-bit Mingw complier to compile C++ programs. - In your cloned repo, run the command
g++ -c *.cpp -I./include
to compile cpp files. - Afterwards, run
g++ -o main *.o -L./lib -lsfml-graphics -lsfml-window -lsfml-system
to link object files. - Alternatively, you can include both commands in your local
Makefile
and runmingw32-make
to complete both. - Finally, run
./main <rom-folder-name>/<chip8rom.ch8>
to run the program.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Feel free to leave suggestions as well, I'm always looking for ways to improve!