Re: A86: screen stuff


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

Re: A86: screen stuff



At 12:34 AM 10/29/97 -0500, you wrote:

>>  have you tried a djnz loop that loads a 0 into all the graph screen
>>  addresses?
>>  
>>  
>A MUCH faster way is an LDIR, such as the following:
>
>ld hl,GRAPHMEM
>ld de,GRAPHMEM+1
>ld bc,1023
>ld hl,0000
>ldir
>
>which loads 0 into the 1st byte and then loads each byte after that with the
>contents of the previous byte, which was just zeroed out.
>
Does djnz work with bc also, or just with b?

--Joshua


References: