LD (HL),r

Operation

(HL) <- r

Mnemonic

LD

Operands

(HL),r

b7b6b5b4b3b2b1b0
0 1 1 1 0 r

Description

The contents of register r is loaded to the memory location specified by the contents of the HL register pair. The r symbol identifies registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$77
B000$70
C001$71
D010$72
E011$73
H100$74
L101$75

Condition Bits Affected

None

Example

If the contents of register pair HL specify memory location $2146 and register B contains byte $29, then upon the execution of

	LD	(HL),B

memory address $2146 also contains $29.