A JavaScript 65816 Microprocessor Emulator
Go to file
Preston Skupinski e2341a63a1 added XBA
2011-05-13 13:51:10 -04:00
test fixed the emulation mode stack register and stack behavior to be a bit more accurate 2011-05-12 00:57:29 -04:00
.gitignore
cpu.js added XBA 2011-05-13 13:51:10 -04:00
index.html
README fixed DEC operations to properly handle decrementing 0 by 1 and numerous fixes to the DEC and INC operations otherwise 2011-05-05 22:34:49 -04:00
TODO updated the TODO 2011-05-12 16:23:03 -04:00

This project's goal is to fully emulate the 65816 microprocessor in JavaScript.  It would be awesome if at some point it could emulate an entire system such as the SNES, but that is something to consider later on. 

You call the execute function of the cpu object with a raw hex string representing the program you wish to emulate and it will execute those instructions as close to the 65816 as possible.

Short examples to try out:

var cpu = new CPU_65816();

cpu.execute("18fbc230a9ff0185ff64ffa5ff");

cpu.r.a should be 0 after executing this.

cpu.execute("18fbc230a9ff01a0010099fea5ff");

cpu.r.a should be 511 after executing this.