When the test has finished executing, the value in address $0210 should be $FF, if your CPU passed. Load the 48 KB binary into your emulator's memory space at $4000, which leaves 16 KB of read-write RAM below it. My compiled version can be downloaded here: I have compiled a 6502 test suite which I found the source code to here: Once your code works, you can always go the extra mile if you like and turn it into an Apple II emulator, or NES, C64, VIC-20 or any of the other billions of old 6502-based systems from back in the day. For the purposes of this challenge, you won't need to worry about cycle timing if you don't want to - but that's always a plus to include!ĭON'T COPY ANYBODY ELSE'S CODE!! Of course, you can certainly peek at other emulators to help you understand, but no copy and pasting! :) The 6502 is one of the easiest real-world processors to emulate. Resources are linked at the bottom of this. This involves, of course, understanding its instruction set and its encoding format. The challenge is to write your own 6502 CPU emulator. This one is obviously towards the more advanced side of the spectrum. I thought this would be a fun one to see the results for. This is kind of inspired by the Intel 8086 challenge that's also on here, but I thought a 6502 challenge would be interesting too.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |