Re: LZ: A new programming question


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

Re: LZ: A new programming question



At 16:18 12/18/96 -0800, you wrote:
>
>There is one asm command you could use, ldir.  It means load hl into de 
>while increasing addresses until bc equals 0.  so...
>
>ld hl,$80E1	;source of stuff
>ld de,$80E0	;destination of stuff
>ld bc,$0003	;amount of stuff, or bytes you want to move
>ldir
>
>By the way, there is no chance of overlapping problems.  This routine is 
>especially good if you're moving lots and lots of bytes, like some 
>programs do to load pictures from graph mem to video mem.  You can have 
>the fun of working out the other things, like how to calculate bc(bytes 
>to move), and stuff like that.
>
>-- 
>Compliments of:
>_-_-_-_-_-_-_-_
>  Alan Bailey
>  mailto:bailala@mw.sisna.com
>  IRC:Abalone
>  Web:http://www.mw.sisna.com/users/bailala/home.htm
>
OK, that sounds like it'll work.  But now I have another question.  How can
I do greater than or less than?  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."


Follow-Ups: