Re: LZ: A new programming question


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

Re: LZ: A new programming question



At 20:44 12/20/96 -0800, you wrote:
>[stuff cut]
>
>> One more question for now.  This will set hl and de equal right?
>> 
>> push hl
>> pop de
>> add hl,de
>> 
>> Or is there a faster way?
>> Thanks for your help.
>> Nathan Adams
>> nathana@goodnet.com
>> "It is better to remain silent and be thought a fool,
>> than to speak out and remove all doubt."
>
>
>The first two lines will do want you want.
>The third line will put hl+de into hl
>
>-- 
>Compliments of:
>_-_-_-_-_-_-_-_
>  Alan Bailey
>  mailto:bailala@mw.sisna.com
>  IRC:Abalone
>  Web:http://www.mw.sisna.com/users/bailala/home.htm
>
So hl and de will both equal the same value.
So if I do this:

ld hl,$80DF
push hl
pop de

hl and de both equal $80DF. 
Nathan Adams
nathana@goodnet.com
"It is better to remain silent and be thought a fool,
than to speak out and remove all doubt."