The CHIP-8 is a virtual machine designed in the 1970s for creating simple games. I tried making a quick port of an existing CHIP-8 interpreter, and I partially succeeded. Here is it running the Trip-8 demo rom:
I can run CHIP-8 roms successfully, but after a seemingly random delay the simulator freezes completely. I can only imagine this being a threading issue, so I’m not sure if there’s something in the CHIP-8 interpreter I ported causing problems, an issue with how I used the APIs, or whether there’s a bug in the simulator. I may also still be using some libraries that the interpreter originally used that the Pokitto won’t have, which means it might not work on hardware without minor modification. That said, I feel fairly confident that this will work on a Pokitto without too much trouble because I managed to port the interpreter to the Gamebuino with much more effort and this should be easier. With the Pokitto’s specs, I think the limited resources of the CHIP-8 shouldn’t be much trouble to handle at full speed.
Here are the files. I simply modified the example Hello World simulator project by adding chip8.c, modifying Hello.cpp, and adding the two header files chip8.h and trip8.h. Since this project was a quick experiment I didn’t set up a proper git repo yet, so I just added the files to a gist for now: