(D8080) Move Instructions (16 bits)

Mnemonic

Symbolic
Operation

Flags
S    Z    H     P    C

Opcode
76 543 210

Hex

Bytes

M
Cycles

Clock
Cycles

Comments

LXI B, nn

BC ¬ nn

•     •     •     •     •

00 000 001
¬    n     ®
¬    n     ®

01

3

3

10

 

LXI D, nn

DE ¬ nn

•     •     •     •     •

00 010 001
¬    n     ®
¬    n     ®

11

3

3

10

LXI H, nn

HL ¬ nn

•     •     •     •     •

00 100 001
¬    n     ®
¬    n     ®

21

3

3

10

LXI SP, nn

SP ¬ nn

•     •     •     •     •

00 110 001
¬    n     ®
¬    n     ®

31

3

3

10

LHLD nn

L ¬ (nn)
H ¬ (nn+1)

•     •     •     •     •

00 101 010
¬    n     ®
¬    n     ®

2A

3

5

16

SHLD nn

(nn) ¬ L
(nn+1) ¬ H

•     •     •     •     •

00 100 010
¬    n     ®
¬    n     ®

22

3

5

16

SPHL

SP ¬ HL

•     •     •     •     •

11 111 001

F9

1

1

6

XCHG

DE « HL

•     •     •     •     •

11 101 011

EB

1

1

4

XTHL

H « (SP+1)
L « (SP)

•     •     •     •     •

11 100 011

E3

1

5

19

PUSH B

SP ¬ SP - 1
(SP) ¬ B
SP ¬ SP - 1
(SP) ¬ C

•     •     •     •     •

11 000 101

C5

1

3

11

PUSH D

SP ¬ SP - 1
(SP) ¬ D
SP ¬ SP - 1
(SP) ¬ E

•     •     •     •     •

11 010 101

D5

1

3

11

PUSH H

SP ¬ SP - 1
(SP) ¬ H
SP ¬ SP - 1
(SP) ¬ L

•     •     •     •     •

11 100 101

E5

1

3

11

PUSH PSW

SP ¬ SP - 1
(SP) ¬ A
SP ¬ SP - 1
(SP) ¬ Flags

•     •     •     •     •

11 110 101

F5

1

3

11

POP B

C ¬ (SP)
SP ¬ SP + 1
B ¬ (SP)
SP ¬ SP + 1

•     •     •     •     •

11 000 001

C1

1

3

10

POP D

E ¬ (SP)
SP ¬ SP + 1
D ¬ (SP)
SP ¬ SP + 1

•     •     •     •     •

11 010 001

D1

1

3

10

POP H

L ¬ (SP)
SP ¬ SP + 1
H ¬ (SP)
SP ¬ SP + 1

•     •     •     •     •

11 100 001

E1

1

3

10

POP PSW

Flags ¬ (SP)
SP ¬ SP + 1
A ¬ (SP)
SP ¬ SP + 1

•     •     •     •     •

11 110 001

F1

1

3

10

Flag Notation:

• = flag is not affected.