4 ms·
I can top that :) (although it hasn't been used in a production emulator) I wrote this a few years ago - it's ~500 lines taking advantage of the logic behind
by happycube 12y ago
I can top that :) (although it hasn't been used in a production emulator)
I wrote this a few years ago - it's ~500 lines taking advantage of the logic behind the instruction set (instead of a jump table) and it can run Apple I BASIC at least.
https://github.com/happycube/chadslab/tree/master/m6502 https://github.com/happycube/chadslab/tree/master/m6502
- Cyph0n 12y agoLooks really clean. Nicely done. That is similar to my approach to emulating the Gameboy Color's Z80-like CPU. Not yet completed - probably never will be :(
- anewhnaccount 12y agoYeah, imo trying to actually do some instruction decoding rather than just a massive switch case is a lot nicer.