LD r,n

Operation

r <- n

Mnemonic

LD

Operands

r,n

b7b6b5b4b3b2b1b0
0 0 r 1 1 0
n

Description

The 8-bit integer n is loaded to any register r, in which r identifies registers A, B, C, D, E, H, or L, assembled as follows in the object code:

RegisterrHex
A111$3E
B000$06
C001$0E
D010$16
E011$1E
H100$26
L101$2E

Condition Bits Affected

None

Example

Upon the execution of

	LD	E,$A5

register E will contain $A5