A 8080 emulator written in C++17 started after reading http://www.emulator101.com. The idea was to see what C++17 could bring to the writing of an emulator. The answer is: not so much. C++11/14 was helpful to generate the jump table, but otherwise, I didn't find a way to use effectively C++17 new features.
I could not have written cpp8080
without those ressources:
cpp8080
is a C++17 library. The repository contains two examples built on this emulator:
- Space Invaders (without sounds)
- a test that exercices the emulated CPU
- A C++17 compiler
- SDL2 (needed for Space Invaders)
Requires conan.
mkdir build && cd build
conan install .. --build=missing
cmake .. -G Ninja
ninja
ninja test