LD r,r'

Operation

r <- r'

Mnemonic

LD

Operands

r,r'

b7b6b5b4b3b2b1b0
0 1 r r'

Description

The contents of any register r' are loaded to any other register r. r, r' identifies any of the registers A, B, C, D, E, H, or L, assembled as follows in the object code:

Registerr
A111
B000
C001
D010
E011
H100
L101

Note:Complete list of opcodes below

Condition Bits Affected

None

Example

If the H Register contains the number $8A, and the E register contains $10, the instruction

	LD	H,E

results in both registers containing $10.

Opcodes

MnemonicHexMnemonicHexMnemonicHexMnemonicHexMnemonicHexMnemonicHexMnemonicHex
LD A,A$7FLD B,A$47LD C,A$4FLD D,A$57LD E,A$5FLD H,A$67LD L,A$6F
LD A,B$78LD B,B$40LD C,B$48LD D,B$50LD E,B$58LD H,B$60LD L,B$68
LD A,C$79LD B,C$41LD C,C$49LD D,C$51LD E,C$59LD H,C$61LD L,C$69
LD A,D$7ALD B,D$42LD C,D$4ALD D,D$52LD E,D$5ALD H,D$62LD L,D$6A
LD A,E$7BLD B,E$43LD C,E$4BLD D,E$53LD E,E$5BLD H,E$63LD L,E$6B
LD A,H$7CLD B,H$44LD C,H$4CLD D,H$54LD E,H$5CLD H,H$64LD L,H$6C
LD A,L$7DLD B,L$45LD C,L$4DLD D,L$55LD E,L$5DLD H,L$65LD L,L$6D