Closed drhelius closed 2 months ago
I had a quick look at the Rockwell data sheet and could find no reason to believe that JMP's implementation differs from the baseline 6502 so I think the result here is just because code is being executed from the stack page.
Given that initially PC = 444 = $1BC, and S = 191 = $BF
sequence of events here is:
Therefore the destination address the processor reads is $BEE2 because the low byte of the PC is written to the stack modifying the instruction before it has fully been read.
Yes, you are right. Thanks for the clear explanation!
20.json, test 5358 "20 e2 b0" in my books is JSR $B0E2 But for some reason is expecting a final PC of $BEE2 (final PC=48866)
Is there something I'm missing?