I'm having a bit of a brainfart while trying to trace through some old 6800 code.
ldx $9ffe
jsr $00,x
Does this jump to 9FFE or does it read two bytes from 9FFE and then use that as the jump address?
I'm confused because the two bytes at 9FFE-9FFF are the last two bytes of a ROM, and the bytes are not a jump/branch/return instruction so execution would continue at A000 which is not a valid address. But if the two bytes (94 10) are an address then 9410 is in the middle of an unrelated routine and it doesn't seem right to jump there.
ldx $9ffe
jsr $00,x
Does this jump to 9FFE or does it read two bytes from 9FFE and then use that as the jump address?
I'm confused because the two bytes at 9FFE-9FFF are the last two bytes of a ROM, and the bytes are not a jump/branch/return instruction so execution would continue at A000 which is not a valid address. But if the two bytes (94 10) are an address then 9410 is in the middle of an unrelated routine and it doesn't seem right to jump there.