My take on building a CHIP-8 emulator.
You will need a C compiler, and CMake to build the project.
First create the build folder and generate the build files:
mkdir build
cmake -S . -B build -DCMAKE_BUILD_TYPE=ReleaseThen build the executable:
cmake --build buildFinally, install the binary together with some sample roms:
cmake --install build --prefix outThe binary file will be located at out/bin/chip8.
You will need to find some CHIP-8 roms on the internet, but you can also test it with the roms that are installed together with the binary. For example, you can invoke the executable like so:
./out/bin/chip8 ./out/roms/IBM_Logo.ch8