A89: RE: Re: Exit routine


[Prev][Next][Index][Thread]

A89: RE: Re: Exit routine




Whoops i thought I could use them without caring about the SP !!
Thanks
Javier


-----Mensaje original-----
De: Niklas Brunlid <e96nbr@efd.lth.se>
Para: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
Fecha: Miércoles 25 de Agosto de 1999 09:05 a.m.
Asunto: A89: Re: Exit routine


>
>> HI
>> I can´t exit my programme with RTS, I have to use Doors Esc+On to get
back
>> to doors!! What should I do ??? Is it because I have so many JSR and BRA
>> that I don´t return to doors??
>> Thanks asm people
>> Javier
>
>Check to make sure that the stack pointer (a7/sp) is the same as when you
first
>enterered the program at _main.
>Most likely you've forgotten to restore it properly after a library call -
the
>ones that take arguments pushed onto the stack. They don't restore the
stack
>themselves.
>
> / Niklas Brunlid
>Check out Prosit for the TI-89 / TI-92 Plus at http://c625.sparta.lu.se
>Random PQF Quote follows:
>
>"Have another drink, not-Corporal Nobby?" said Sergeant Colon unsteadily.
>"I do not mind if I do, not-Sgt Colon," said Nobby.
>        -- The joys of working undercover
>           (Terry Pratchett, Guards! Guards!)
>
>
>