[A83] Re: ldir


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

[A83] Re: ldir




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