Re: [hatari-devel] Re: BM407 + symbols |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Doh, now I see it.
Any idea what would be the best way to check, on next instruction
from conditional subroutine call instruction, whether subroutine
call was actually done or not?
For example, how safe assumption it would be that if the "called" subroutine
is on next instruction, it actually wasn't a call?
For subroutine call instructions that take an absolute address instead of
destination being specified indirectly (e.g. in register), that would
probably be very safe as absolute subroutine call to next instruction
would be really dumb. :-)
I would assume that even for indirect destinations that is pretty safe.
I'd guess it rare for code to call subroutine on next instruction before
going to it by normal PC increment. It might still happen though, if one
needs to do tail call to the same function multiple times and wants to
save one branch & rts instruction...
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |