pskupinski / 65816.js

A JavaScript 65816 Microprocessor Emulator
14 stars 7 forks source link

cpu.js is far too large #2

Open pskupinski opened 12 years ago

pskupinski commented 12 years ago

A serious effort needs to be put into cutting down the number of lines of code in cpu.js.

A great deal of code follows a similar pattern and could be turned into generic, reusable functions and customized for the operation being performed. The focus should be on writing a library of functions for the different addressing modes and using those instead of using roughly the same code in plenty of places.

pskupinski commented 12 years ago

I've cut it down by ~3k lines with my recent work. There are further places where cuts can be made still as well.