> So are you trying to say that all BSR and JSR calls can't be intercepted by the MAME > 6809 emulator and their text equivalent pushed onto a list control? e.g.
Sure you can, but that isn't anything like what a call stack is.
You'd need to prune the list when you rts, taking into account that your rts might be on a different stack than the last JSR or the address might have been pushed onto the cpu stack as an indirect jump.
(forgive me it's 6502 as it's the assembly I wrote the most)
JSR myroutine RTS
:myroutine LDA #$d0 PHA LDA #$c0 PHA RTS
Some cpu's can move the stack pointer for multitasking, others can just copy the whole stack somewhere and restore it. When you do that the call stack is going to be even more messed up.
|