[A86] Adding to HL register pair


[Next][Index][Thread]

[A86] Adding to HL register pair



  If I want to add the contents of register d to the register pair, HL,
would this work:

ld a, l
add d
ld l, a
jr nc, no_carry
inc h
no_carry:

And, is there a better way to do this?  HL points to a space in memory and I
want to move the pointer ahead an amount equal to d.  Thanks in advance.
              Alex




Follow-Ups: