[A83] Re: Do I get this?
[Prev][Next][Index][Thread]
[A83] Re: Do I get this?
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