Thursday, December 24, 2009

I learned something new about emulators...the hard way

I was trying to emulate a processor from the mid-1990's. Unfortunately, I dove write into the code with minimal studying of documentation, and no overall plan. I must warn you that there are a few things that you really want to do beforehand.
1) Learn about the processor (registers, accumulators and all)
2) Learn about the each machine code
3) Write the functions for each piece of opcode, then write the case statements that test which piece of machine code is going through

NUMBER THREE MAKES IT SO MUCH EASIER.

No comments:

Post a Comment

Search This Blog