[A83] Re: cant get code to work


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

[A83] Re: cant get code to work




The popping and pushing is no problem, since you pop two variables form
the stack, modify the one that's not the return address, and push them
back in the right order.

(just to make that clear to all)

--Peter-Martijn



On Fri, 10 May 2002 VertGuy@aol.com wrote:

> In a message dated 05/10/2002 5:30:55 PM Eastern Daylight Time, 
> dwedit@hotmail.com writes:
> 
> 
> > Here's the problem:
> > 
> > >     push bc
> > >     push hl
> > ...
> > >     ret
> > 
> > 
> > You pushed without popping.  Ret uses the same stack as push and pop.
> > 
> > 
> 
> The code minus the 5 lines dealing with (friction) worked with the pushing 
> and popping as it is.      ????
> 
> 
> 




Follow-Ups: References: