Lib65816 Emulator library for the 65816 CPU. See https://codebutchery.wordpress.com/65816-cpu-emulator/ Disclaimer: I didn't test this enough to claim that it works well, you are free to use it but you might have to do some bugfixing :)