Instruction Reference Manual 53
Description
• LD HL,(mn): Loads the register L with the data whose address is mn and loads the register H
withthedatawhoseaddressismn plus 1.
• LD HL,(HL+d): Loads the register L with the data whose address is the data in word register
HL plus a displacement d. Then loads the register H with the data whose address is the data in
word register HL plus a displacement d plus 1.
• LD HL,(IX+d): Loads the register L with the data whose address is the data in index regis-
ter IX plus a displacement d. Then loads the register H with the data whose address is the data in
index register IX plus a displacement d plus 1.
• LD HL,(IY+d): Loads the register L with the data whose address is the data in index regis-
ter IY plus a displacement d. Then loads the register H with the data whose address is the data in
index register IY plus a displacement d plus 1.
The last 3 instructions are not available for the Z180.
LD HL,(mn)
LD HL,(HL+d)
LD HL,(IX+d)
LD HL,(IY+d)
Opcode Instruction Clocks Operation
2A mn LD HL,(mn) 11 (2,2,2,1,2,2) L=(mn);H=(mn +1)
DD E4 d LD HL,(HL+d) 11 (2,2,2,1,2,2) L = (HL + d); H = (HL + d +1)
E4 d LD HL,(IX+d) 9 (2,2,1,2,2) L = (IX + d); H = (IX + d +1)
FD E4 d LD HL,(IY+d) 11 (2,2,2,1,2,2) L = (IY + d); H = (IY + d +1)
Flags ALTD I/O
S Z L/V C F R SP S D
- - - - • •