[A83] Re: Do I get this?


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

[A83] Re: Do I get this?




Well I was actually too lazy to try :-)
**
Yes, It works.(83+) 22272=$5700
Hey! TI changes the stack pointer right after that

5700:call $254E

245E:pop bc
254F: ld sp,($86DE)

If you set a breakpoint at $5700, it monitors exactly when an asm-program
stops (not an ion program). During a quick test, I didn't find any other
calls of $5700. Could be useful, probably.

>Sure, but you probably found that out already
>
>
>> ----------------------------------------
>> From: Ronald Teune <rtwolf@gmx.net>
>> Sent: Wed Aug 22 22:21:58 GMT+02:00 2001
>> To: <assembly-83@lists.ticalc.org>
>> Subject: [A83] Re: Do I get this?
>>
>>
>>
>> Well, to continue about the calls/pops/pushes:
>>
>> Would this program work correctly?
>>
>>     pop hl
>>     push hl
>>     bcall(_disphl)        ;shows the decimal representation of the
>> ret-address.
>>     ret
>>
>> >Ehm, yes, but you'll mess up your stack too, because you didn't remove
>> >the original ret address from it.
>> >
>> >Routine should be:
>> >
>> >routine:
>> > pop hl
>> > ld hl,xxxx
>> > push hl
>> > ret
>> >
>> >--(Peter-Martijn)
>> >
>> >
>> >> Out of the awnsers to my last question, I understand that when I do
this:
>> >>
>> >>
>> >>     call    routine
>> >> .......................
>> >>
>> >> routine:
>> >>     ld  hl,xxxx
>> >>     push    hl
>> >>     ret
>> >>
>> >>
>> >> My program will get messed up and return to xxxx, instead of to the
>> dotted
>> >> line.
>> >> Am I correct?
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>>
>
>-----------------------------------------------------
>Mail.be, Free WebMail and Virtual Office
>http://www.mail.be
>
>
>