A86: mem help


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

A86: mem help




i have run across a problem while trying to make some graphic routines....
example...

Sprite1:
    .db %00000000
    .db %00000000
    .db %00000000
    .db %00000000
    .db %00000000
    .db %00000000
    .db %00000000
    .db %00000000
...i have this 8x8 sprite and have HL which is currently pointing to the
first byte of HL...so it is pointing to the "0" in the top left
corner...does the command "inc hl" make HL point to the second zero on the
top row or does it make it point to the top row?  if it makes it point to
the second row how would i make it point to the second...then third....then
fourth...and so on zero in each row....

(i know these seems newbie-ish, but i've never been able to find any good
tutorials on how mem works...)

...also can I clear just...
    ld f,0
    ....to clear all the flags that may be set....i want to clear the carry
flag...






References: