SingleStepTests/65816

DP page wrapping in emulation mode

Closed this issue · 0 comments

First things first: thanks for great tool, it is really handy and useful. I was delighted because I didn't want to re-implement SNES roms for my custom 65c816 emulator.

For further improving You should consider patch from SingleStepTests/ProcessorTests#79 because of some problems with "new" addressing modes that shouldn't be page wrapped in emulation mode.

According to "65C816 Programming Manual", page 287, section "65802/65816: The Direct Page" so called "new" opcodes (and - thus - new modes) should never wrap on page boundaries. Mentioned patch has also reference to explanation in Bruce's work: http://www.6502.org/tutorials/65c816opcodes.html#5.1.1

It means that the rule should be applied to all *7 opcodes: [dir] and [dir],Y addressing modes.