RosettaCodeData/Task/Copy-a-string/Z80-Assembly/copy-a-string-2.z80

5 lines
310 B
Z80 Assembly

ld a,<MyString ; < represents the low byte of the address. Some assemblers use LOW() with the label in the parentheses.
ld (PointerVariable),a
ld a,>MyString ; > represents the high byte of the address. Some assemblers use HIGH() with the label in the parentheses.
ld (PointerVariable+1),a