Z80 Instruction Groups

8-bit Load Group16-bit Load Group
Exchange, Block Transfer and Search Group8-bit Arithmetic Group
General-Purpose Arithmetic and CPU Control Group16-bit Arithmetic Group
Rotate and Shift GroupBit Set, Reset and Test Group
Jump GroupCall and Return Group
Input and Output Group


8-bit Load Group

LD r,r' LD A,I LD A,R
LD r,n LD I,A LD R,A
LD r,(HL) LD (HL),r LD (HL),n LD A,(nn) LD (nn),A
LD r,(IX+d) LD (IX+d),r LD (IX+d),n LD A,(BC) LD (BC),A
LD r,(IY+d) LD (IY+d),r LD (IY+d),n LD A,(DE) LD (DE),A


16-bit Load Group

LD dd,(nn)LD (nn),ddLD dd,nn
LD HL,(nn)LD (nn),HLLD SP,HLPUSH qqPOP qq
LD IX,(nn)LD (nn),IXLD IX,nnLD SP,IXPUSH IXPOP IX
LD IY,(nn)LD (nn),IYLD IY,nnLD SP,IYPUSH IYPOP IY


Exchange, Block Transfer and Search Group

EX AF,AF' EXX
EX (SP),HLEX (SP),IXEX (SP),IYEX DE,HL
LDI LDD CPI CPD
LDIR LDDR CPIR CPDR


8-bit Arithmetic Group

ADD A,rADD A,nADD A,(HL)ADD A,(IX+d)ADD A,(IY+d)
ADC A,rADC A,nADC A,(HL)ADC A,(IX+d)ADC A,(IY+d)
SUB r SUB n SUB (HL) SUB (IX+d) SUB (IY+d)
SBC A,rSBC A,nSBC A,(HL)SBC A,(IX+d)SBC A,(IY+d)
AND r AND n AND (HL) AND (IX+d) AND (IY+d)
OR r OR n OR (HL) OR (IX+d) OR (IY+d)
XOR r XOR n XOR (HL) XOR (IX+d) XOR (IY+d)
CP r CP n CP (HL) CP (IX+d) CP (IY+d)
INC r INC (HL) INC (IX+d) INC (IY+d)
DEC r DEC (HL) DEC (IX+d) DEC (IY+d)


16-Bit Arithmetic Group

ADD HL,ssINC ssDEC ss
ADD IX,ppINC IXDEC IX
ADD IY,rrINC IYDEC IY
ADC HL,ssSBC HL,ss


General-Purpose Arithmetic and CPU Control Group

DAACCFHALTIM 0
CPLSCFDI IM 1
NEGNOPEI IM 2


Rotate and Shift Group

RLCA RLA RRCA RRA RLD RRD
RLC r RL r RRC r RR r SLA r SLL r* SRA r SRL r
RLC (HL) RL (HL) RRC (HL) RR (HL) SLA (HL) SLL (HL)* SRA (HL) SRL (HL)
RLC (IX+d) RL (IX+d) RRC (IX+d) RR (IX+d) SLA (IX+d) SLL (IX+d)* SRA (IX+d) SRL (IX+d)
RLC (IY+d) RL (IY+d) RRC (IY+d) RR (IY+d) SLA (IY+d) SLL (IY+d)* SRA (IY+d) SRL (IY+d)
* - "Undocumented" instruction functions like SLA, but inserts 1 in low bit


Bit Set, Reset and Test Group

BIT b,rBIT b,(HL)BIT b,(IX+d)BIT b,(IY+d)
SET b,rSET b,(HL)SET b,(IX+d)SET b,(IY+d)
RES b,rRES b,(HL)RES b,(IX+d)RES b,(IY+d)


Jump Group

JP nnJP cc,nn
JR e JR C,eJR NC,eJR Z,eJR NZ,e
JP (HL)JP (IX)JP (IY)DJNZ E


Call and Return Group

CALL nnCALL cc,nn
RETRET cc
RETIRETNRST p


Input and Output Group

IN A,(n) IN r,(C) INI INIR IND INDR
OUT (n),A OUT (C),r OUTI OTIR OUTD OTDR