Z-80 Instructions: Part B.


16-BIT LOAD GROUP

Mnemonic
Symbolic
Operation
Flags OP-Code No. of
Bytes
No. of
M Cycles
No. of
T Cycles

Comments
C Z P/V S N H 76 543 210
LD dd,nn dd ← nn 00  dd0  001
← n →
← n →
3 3 10  nn  Pair 
 00   BC 
 00   DE 
 01   HL 
 01   SP 
LD IX,nn IX ← nn 11 011 101
00 100 001
← n →
← n →
4 4 14
LD IY,nn IY ← nn 11 111 101
00 100 001
← n →
← n →
4 4 14
LD HL,(nn) H ← (nn+1)
L ← (nn)
00 101 010
← n →
← n →
3 5 16
LD dd,(nn) ddH ← (nn+1)
ddL ← (nn)
11 101 101
01 dd1 011
← n →
← n →
4 6 20
LD IX,(nn) IXH ← (nn+1)
IXL ← (nn)
11 011 101
00 101 010
← n →
← n →
4 6 20
LD IY,(nn) IYH ← (nn+1)
IYL ← (nn)
11 111 101
00 101 010
← n →
← n →
4 6 20
LD (nn),HL (nn+1) ← H
(nn) ← L
00 100 010
← n →
← n →
3 5 16
LD (nn),dd (nn+1) ← ddH
(nn) ← ddL
11 101 101
01 dd0 011
← n →
← n →
4 6 20
LD (nn),IX (nn+1) ← IXH
(nn) ← IXL
11 011 101
00 100 010
← n →
← n →
4 6 20
LD (nn),IY (nn+1) ← IYH
(nn) ← IYL
11 111 101
00 100 010
← n →
← n →
4 6 20
LD SP,HL SP ← HL 11 111 001 1 1 6
LD SP,IX SP ← IX 11 011 101
11 111 001
2 2 10
LD SP,IY SP ← IY 11 111 101
11 111 001
2 2 10
PUSH qq (SP-2) ← qqL
(SP-1) ← qqH
SP ← SP-2
11 qq0 101 1 3 11  qq  Pair 
 00   BC 
 00   DE 
 01   HL 
 01   AF 
PUSH IX (SP-2) ← IXL
(SP-1) ← IXH
SP ← SP-2
11 011 101
11 100 101
2 4 15
PUSH IY (SP-2) ← IYL
(SP-1) ← IYH
SP ← SP-2
11 111 101
11 100 101
2 4 15
POP qq qqH ← (SP+1)
qqL ← (SP)
SP ← SP+2
11 qq0 001 1 3 10
POP IX IXH ← (SP+1)
IXL ← (SP)
SP ← SP+2
11 011 101
11 100 001
2 4 14
POP IY IYH ← (SP+1)
IYL ← (SP)
SP ← SP+2
11 111 101
11 100 001
2 4 14

 

 Notes:   dd  is any of the register pairs BC, DE, HL, SP 
   qq  is any of the register pairs AF, BC, DE, HL 
  (PAIR)H, (PAIR)L  refer to high order and low order eight bits of the register pair respectively.
                                   E.g. BCL = C, AFH = A
 
 Flag Notation:   • = flag not affected, 0 = flag reset, 1 = flag set, X = flag is unknown, 
   ↕ = flag is affected according to the result of the operation. 
 
16-byte values: Where a 16-bit 'nn' value or address is specified:
 
← n →
← n →
  the first byte of the pair is the least significant byte.