Re:I made an NES emulator – What I learned about the origina...
by Cyph0n on Thursday April 02, 2015 @04:30PM
(#9313007)
A 6502 in ~2500 lines of C? Really? Bookmarked :)
[ Parent
| on HN ]
Re:I made an NES emulator – What I learned about the origina...
by happycube on Thursday April 02, 2015 @09:37PM
(#9314105)
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.
Re:I made an NES emulator – What I learned about the origina...
by Cyph0n on Wednesday April 08, 2015 @01:38PM
(#9342463)
Looks 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 :(
Re:I made an NES emulator – What I learned about the origina...
by anewhnaccount on Friday April 03, 2015 @05:22AM
(#9315020)
Yeah, imo trying to actually do some instruction decoding rather than just a massive switch case is a lot nicer.