gb6: game boy emulator for System 6

I think the speed increase would come from the fact that optimized 68K code would read from aligned addresses? The emulator has to check for this alignment and use the slow path for unaligned accesses. Compare the instruction cycle counts in the CPU manual between aligned and unaligned accesses to see if this can be true.

Mac OS APIs are full of structs with 32-bit members that are only 16-bit aligned. For example, the parID field of FSSpec and portBits.baseAddr of GrafPort.

(I think you were clear on this, but in case I confused anyone else, I was talking about emulating 68K code on a little-endian host.)
 
Back
Top