Thank you!
Sorry about the graphics and sound, it's the result of unoptimized code running in an unoptimized emulator. Everything's done by the simulated CPU, and if it can't keep up things lag behind. I don't know why it flickers though, I tried adding an emulator feature specifically to combat it but it didn't work out.