Most of the code is based on gbajs2 and reinterpreted to use sdl2 (via pygame) and sounddevice (for sound). I am not an expert in emulation and I learned most of the concepts that I did not know with ...