RosettaCodeData/Task/Pointers-and-references/Z80-Assembly/pointers-and-references-4.z80
2023-07-01 13:44:08 -04:00

12 lines
227 B
Z80 Assembly

ld hl,PointerTable
ld e,(hl)
inc hl
ld d,(hl)
; depending on what we need to do next, we might need this new pointer back in HL. There are a few ways to do this:
; ex de,hl
; push de
; pop hl
; ld L,E
; ld H,D