[A83] Re: moving sprites
[Prev][Next][Index][Thread]
[A83] Re: moving sprites
>
>I thought you did something like this:
>
> call abc
> call abc2
>
>abc:
> push af
> push bc
> push de
> push hl
> ret
>abc2:
> pop af
> pop bc
> pop de
> pop hl
> ret
>
>Next time I'll read better ;-)
That will crash your calculator: when you call a routine, the pc is pushed
onto the stack. if you pop af at the beginning of a routine that you call,
you pop of the pc and when you ret it will jump to a random place.
--------------------------------
Joe Pemberton
http://tiworld.calc.org
--------------------------------
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com