Re: A82: Clearing part of GraphMem
[Prev][Next][Index][Thread]
Re: A82: Clearing part of GraphMem
In a message dated 98-09-23 18:50:17 EDT, you write:
> >you'd load 0 into the first byte of graph mem, then add 11 to the
> >pointer, load 0 into that, then repeat 63 more times.
> >
> >-Greg
> >
>
> There has to be a better way using the djnz command.
>
first, to make a correction to my other email: it's 64, not 62 :)
Here's some good code to do this that uses djnz:
ld b, 64
ld hl, GRAPH_MEM
ld de, 12
Loop:
ld (hl), 0
add hl, de
djnz Loop
~Adamman