Re: LZ: Need some help


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

Re: LZ: Need some help



> I need to know how to set a group of memory to a certain value.  
> Example: I need to set all memory between $80E6 and $8146 to zero. 
>
use ldir - this loads (de) with (hel) and increments hl and de and 
decrements  BC.
so to set a block of memoy to 0, set hl to teh start of teh block, de 
to the start of teh block+1, and bc to the number of bytes you want 
to clear, load (hl) with 0,  then ldir...


Rob Taylor MAIL - mailto:rtaylor@rtaylor.u-net.com 
           WEB  - http://www.u-net.com/~rtaylor/    


References: