Re: LZ: New method didnt work either


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

Re: LZ: New method didnt work either



C.J. Oster wrote:
> 
> No, no. What you have to do is say PUSH A, or whatever register you are
> dealing with.  Then you make your call, and then you POP A.  If you push
> more than one register, then you have to pop them in reverse order than
> they were pushed.  Push puts the value on the top of the stack. When you
> make a call, what you call can do whatever it wants to the registers, upon
> return, the stack is the way that you left it, but the registers are not.
> When you pop the registers, then it sets the registers to the values that
> they were set to before the call was made.  Understand?
> 
>                                             C.J. Oster
> 
> "Remember, if it jamms, force it, and if it breaks, it needed replacement
> anyway."
> "A Smith & Wesson beats four aces"
> 
> ********************************************************************
> Unsolicited commercial e-mail to the poster of this message
> will be proofread at $70/hr, minimum charge $150.  Submission
> of such e-mail to this address will suffice as contractual assent
> to the said charging schedule.
> ********************************************************************
> 
> 


Nope, you can only pop and push in register pairs i.e. hl,de,bc,ix,af.  
You can't just do a, you have to do af.  When you pop them off, they are 
correctly placed.  
<pre>
-- 
Compliments of:
_-_-_-_-_-_-_-_
  Alan Bailey
  mailto:bailala@mw.sisna.com
  IRC:Abalone
  Web:http://www.mw.sisna.com/users/bailala/home.htm
</pre>


References: