[A83] Re: ldir


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

[A83] Re: ldir




ldir can also be used to clear memory:  (this clears the back buffer)

ld hl,plotsscreen
ld de,plotsscreen+1
ld bc,767
ld (hl),0
ldir


>From: SOCCERK121@aol.com
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] Re: ldir
>Date: Wed, 11 Apr 2001 00:31:44 EDT
>
>
>ldir copies a certain number of bytes from one point to another, for 
>instance
>if you had a pic and you wanted to copy it to the graphbuffer, you can do:
>
>ld hl,pic ;what to copy
>ld de,GRBUF ;where to copy to
>ld bc,768 ;number of bytes
>ldir
>
>call the fastcopy and boom!  it works... it can also be used to scroll the
>buffer, good for scrolling games:
>
>ld hl,GRBUF+12
>ld de,GRBUF
>ld bc,756
>ldir
>
>any questions?  just email me!
>
>-joel
>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com