Re: [hatari-devel] Wrong bus error stack frame with 68000 and JSR

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Thorsten Otto schrieb:

But the stacked PC will depend upon where the program is loaded, and has
nothing to do with the target address of the JSR?

That is what I have been saying the whole time, yes.

Consider the following sequence, assuming address 0x401234 causes a bus
error.

1:	JSR 0x401234
2:	NOP

Then the stacked PC will point to "2:", i.e., the offset to the JSR is 6
bytes.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
New GnuPG-Key-ID: 0x8708B34C827B159E




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/