[A83] Re: "forget" ret with calls ?
[Prev][Next][Index][Thread]
[A83] Re: "forget" ret with calls ?
To forget a single call, just use POP.
POP AF, pop hl
They all work, just pick the registers you don't care about.
But if you want to return to the TIOS from anywhere, you should just save
the stack pointer:
ld (Quit+1),sp
and make a quit label to jump to.
Quit:
ld sp,0000 ;self modify code
ret
>Is it possible to make the calc "forget" it was busy doing a call, so that
>when a ret command is given in a call the program returns to the TI-OS
>rather than returning to the place where the call was made?
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com