LD r,(HL)

Operation

r <- (HL)

Mnemonic

LD

Operands

r,(HL)

b7b6b5b4b3b2b1b0
0 1 r 1 1 0
n

Description

The 8-bit contents of memory location (HL) are loaded to register r, in which r identifies registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$7E
B000$46
C001$4E
D010$56
E011$5E
H100$66
L101$6E

Condition Bits Affected

None

Example

If register pair HL contains the number $75A1 and memory address $75A1 contains the byte $58, the execution of

	LD	C,(HL)

results in $58 in register C