Live data from Hacker News

I made an NES emulator – What I learned about the original Nintendo

medium.com

41–42 of 42 posts

Re: I made an NES emulator – What I learned about the original Nintendo

#41

Earlier quoted context omitted.

>Old systems are surprisingly understandable after a few hours' research and fooling around. This is why I say old computers never die - their owners do! Old systems have lots of technology to engage the hacker mind. By the way, my favourite emulator is Oriculator, which emulates the Oric-1/Atmos/Telestrat/Pravetz 8-bit machines that never had much of a chance in the 80's .. just look at this beautiful code, for exam…

I wonder why it's possible to get "better" programs for old hardware now. Is it because the field of CS has advanced further, which means that we can apply modern ideas and algorithms? Or is it because we can cheat and have a toolchain running on vastly superior hardware, which enables us to use it in ways that would have been too time-consuming to develop back in the day?

25 years experience helps a lot, there are much better tools available (cross-assemblers, editors, make, git), and there's a wealth of documentation that just wasn't available back then.

The edit-compile-test cycle is near instant and debugging from an emulator is a lot easier than debugging on the real hardware.

Re: I made an NES emulator – What I learned about the original Nintendo

#42
post #22

Earlier quoted context omitted.

A 6502 in ~2500 lines of C? Really? Bookmarked :)

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

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 :(

Post reply on HN