Z-80 Instructions: Part F.


16-BIT ARITHMETIC 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
ADD HL,ss HL ← HL + ss 0 X 00 ss1 001 1 3 11  ss    Reg.
 00    BC
 01    DE
 10    HL
 11    SP
ADC HL,ss HL ← HL + ss + CY V 0 X 11 101 101
01 ss1 010
2 4 15
SBC HL,ss HL ← HL - ss - CY V 0 X 11 101 101
01 ss0 010
2 4 15
ADD IX,pp IX ← IX + pp 0 X 11 011 101
00 pp1 001
2 4 15  pp    Reg.
 00    BC
 01    DE
 10    IX
 11    SP
ADD IY,rr IY ← IY + pp 0 X 11 111 101
00 pp1 001
2 4 15  rr    Reg.
 00    BC
 01    DE
 10    IY
 11    SP
INC ss ss ← ss + 1 00 ss0 011 1 1 6 ss as above
INC IX IX ← IX + 1 11 011 101
00 100 011
2 2 10  
INC IY IY ← IY + 1 11 111 101
00 100 011
2 2 10  
DEC ss ss ← ss - 1 00 ss1 011 1 1 6 ss as above
DEC IX IX ← IX + 1 11 011 101
00 101 011
2 2 10  
DEC IY IY ← IY + 1 11 111 101
00 101 011
2 2 10  

 Notes:  ss is any of the register pairs BC, DE, HL, SP.
  pp is any of the register pairs BC, DE, IX, SP.
  rr is any of the register pairs BC, DE, IY, SP.
 
 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.