Вы находитесь на странице: 1из 26

Z80

- ;
*
;
1 ;
0 ;
? ;
P /
;
V /
;
t
:
- JR, CALL, RET
-
.
- (DJNZ, LDIR, ...)
,
( ) .
1.
LD - LoaD

C Z P/V S N H t

LD B,N
0 N
- - - - - -

LD C,N
0E N
- - - - - -


LD D,N
1 N
- - - - - -

LD E,N
1E N
- - - - - -
LD H,N
 N
- - - - - -

LD L,N
E N
- - - - - -

LD (HL),N
 N
- - - - - - 10

LD A,N
E N
- - - - - -

LD HX,N
DD  N
- - - - - - 11
LD LX,N
DD E N
- - - - - - 11
LD HY,N
FD  N
- - - - - - 11
LD LY,N
FD E N
- - - - - - 11

.

C Z P/V S N H t

LD BC,Nn
01 n N
- - - - - - 10
LD DE,Nn
11 n N
- - - - - - 10
LD HL,Nn
1 n N
- - - - - - 10
LD SP,Nn
1 n N
- - - - - - 10
LD IX,Nn
DD 1 n N - - - - - - 1
LD IY,Nn
FD 1 n N - - - - - - 1

.

C Z P/V S N H t

LD A,B
8
- - - - - -

LD A,C

- - - - - -

LD A,D
A
- - - - - -

LD A,E
B
- - - - - -

LD A,H
C
- - - - - -

LD A,L
D
- - - - - -

LD A,A
F
- - - - - -

LD A,HX
DD C
- - - - - -
8
LD A,HY
FD C
- - - - - -
8
LD A,LX
DD D
- - - - - -
8
LD A,LY
FD D
- - - - - -
8
LD B,B
0
- - - - - -

LD B,C
1
- - - - - -

LD B,D

- - - - - -

LD B,E

- - - - - -

LD B,H

- - - - - -

LD B,L

- - - - - -

LD B,A

- - - - - -

LD B,HX
DD 
- - - - - -
8
LD B,HY
FD 
- - - - - -
8
LD B,LX
DD 
- - - - - -
8
LD B,LY
FD 
- - - - - -
8
LD C,B
8
- - - - - -

LD C,C

- - - - - -

LD C,D
A
- - - - - -

LD C,E
B
- - - - - -

LD C,H
C
- - - - - -

LD C,L
D
- - - - - -

LD C,A
F
- - - - - -

LD C,HX
DD C
- - - - - -
8
LD C,HY
FD C
- - - - - -
8
LD C,LX
DD D
- - - - - -
8
LD C,LY
FD D
- - - - - -
8
LD D,B
0
- - - - - -

LD D,C
1
- - - - - -

LD D,D

- - - - - -

LD D,E

- - - - - -

LD D,H

- - - - - -

LD D,L

- - - - - -

LD D,A

- - - - - -

LD D,HX
DD 
- - - - - -
8
LD D,HY
FD 
- - - - - -
8
LD D,LX
DD 
- - - - - -
8
LD D,LY
FD 
- - - - - -
8
LD E,B
8
- - - - - -

LD E,C

- - - - - -

LD E,D
A
- - - - - -

LD E,E
B
- - - - - -

LD E,H
C
- - - - - -

LD E,L
D
- - - - - -

LD E,A
F
- - - - - -

LD E,HX
DD C
- - - - - -
8
LD E,HY
FD C
- - - - - -
8
LD E,LX
DD D
- - - - - -
8
LD E,LY
FD D
- - - - - -
8
LD H,B
0
- - - - - -


LD H,C
1
- - - - - -

LD H,D

- - - - - -

LD H,E

- - - - - -

LD H,H

- - - - - -

LD H,L

- - - - - -

LD H,A

- - - - - -

LD HX,A
DD 
- - - - - -
8
LD L,B
8
- - - - - -

LD L,C

- - - - - -

LD L,D
A
- - - - - -

LD L,E
B
- - - - - -

LD L,H
C
- - - - - -

LD L,L
D
- - - - - -

LD L,A
F
- - - - - -

LD LX,A
DD F
- - - - - -
8

LD HX,B
DD 0
- - - - - -
8
LD HX,C
DD 1
- - - - - -
8
LD HX,D
DD 
- - - - - -
8
LD HX,E
DD 
- - - - - -
8
LD HX,HX
DD 
- - - - - -
8
LD HX,LX
DD 
- - - - - -
8
LD LX,B
DD 8
- - - - - -
8
LD LX,C
DD 
- - - - - -
8
LD LX,D
DD A
- - - - - -
8
LD LX,E
DD B
- - - - - -
8
LD LX,HX
DD C
- - - - - -
8
LD LX,LX
DD D
- - - - - -
8

LD HY,B
FD 0
- - - - - -
8
LD HY,C
FD 1
- - - - - -
8
LD HY,D
FD 
- - - - - -
8
LD HY,E
FD 
- - - - - -
8
LD HY,HX
DD 
- - - - - -
8
LD HY,A
FD 
- - - - - -
8
LD HY,LX
DD D
- - - - - -
8
LD LY,B
FD 8
- - - - - -
8
LD LY,C
FD 
- - - - - -
8
LD LY,D
FD A
- - - - - -
8
LD LY,E
FD B
- - - - - -
8
LD LY,HX
FD C
- - - - - -
8
LD LY,LX
FD D
- - - - - -
8
LD LY,A
FD F
- - - - - -
8

LD A,I
ED 
- * IFF * 0 0

LD I,A
ED 
- - - - - -


LD A,R
ED F
- * IFF * 0 0

LD R,A
ED F
- - - - - -

.

C Z P/V S N H t


LD SP,HL
F
- - - - - -
LD SP,IX
DD F
- - - - - - 10
LD SP,IY
FD F
- - - - - - 10

.

C Z P/V S N H t

LD A,(Nn)
A n N
- - - - - - 1
LD HL,(Nn)
A n N
- - - - - - 1
LD DE,(Nn)
ED B n N - - - - - - 0
LD BC,(Nn)
ED B n N - - - - - - 0
LD IX,(Nn)
DD A n N - - - - - - 0
LD IY,(Nn)
FD A n N - - - - - - 0
LD SP,(Nn)
ED B n N - - - - - - 0

.

C Z P/V S N H t


LD A,(BC)
0A
- - - - - -

LD A,(DE)
1A
- - - - - -
LD B,(HL)

- - - - - -

LD C,(HL)
E
- - - - - -


LD D,(HL)

- - - - - -

LD E,(HL)
E
- - - - - -
LD H,(HL)

- - - - - -

LD L,(HL)
E
- - - - - -


LD A,(HL)
E
- - - - - -

.

C Z P/V S N H t

LD B,(IXS)
DD  S
- - - - - - 1
LD C,(IXS)
DD E S
- - - - - - 1
LD D,(IXS)
DD  S
- - - - - - 1
LD E,(IXS)
DD E S
- - - - - - 1
LD H,(IXS)
DD  S
- - - - - - 1
LD L,(IXS)
DD E S
- - - - - - 1
LD A,(IXS)
DD E S
- - - - - - 1
LD B,(IYS)
FD  S
- - - - - - 1
LD C,(IYS)
FD E S
- - - - - - 1
LD D,(IYS)
FD  S
- - - - - - 1
LD E,(IYS)
FD E S
- - - - - - 1
LD H,(IYS)
FD  S
- - - - - - 1
LD L,(IYS)
FD E S
- - - - - - 1
LD A,(IYS)
FD E S
- - - - - - 1

8.

C Z P/V S N H t

LD (Nn),A
 n N
- - - - - - 1
LD (Nn),HL
 n N
- - - - - - 1
LD (Nn),IX
DD  n N - - - - - - 0
LD (Nn),IY
FD  n N - - - - - - 0
LD (Nn),BC
ED  n N - - - - - - 0
LD (Nn),DE
ED  n N - - - - - - 0

LD (Nn),SP
ED  n N - - - - - - 0

.

C Z P/V S N H t


LD (BC),A
0
- - - - - -
LD (DE),A
1
- - - - - -

LD (HL),B
0
- - - - - -


LD (HL),C
1
- - - - - -

LD (HL),D

- - - - - -
LD (HL),E

- - - - - -

LD (HL),H

- - - - - -


LD (HL),L

- - - - - -

LD (HL),A

- - - - - -

10.

C Z P/V S N H t

LD (IXS),B
DD 0 S
- - - - - - 1
LD (IXS),C
DD 1 S
- - - - - - 1
LD (IXS),D
DD  S
- - - - - - 1
LD (IXS),E
DD  S
- - - - - - 1
LD (IXS),H
DD  S
- - - - - - 1
LD (IXS),L
DD  S
- - - - - - 1
LD (IXS),A
DD  S
- - - - - - 1
LD (IXS),N
DD  S N - - - - - - 1
LD (IYS),B
FD 0 S
- - - - - - 1
LD (IYS),C
FD 1 S
- - - - - - 1
LD (IYS),D
FD  S
- - - - - - 1
LD (IYS),E
FD  S
- - - - - - 1
LD (IYS),H
FD  S
- - - - - - 1
LD (IYS),L
FD  S
- - - - - - 1
LD (IYS),A
FD  S
- - - - - - 1
LD (IYS),N
FD  S N - - - - - - 1

11.
EX - EXchange

C Z P/V S N H t

EXX
D
- - - - - -

EX DE,HL
EB
- - - - - -

EX AF,AF
08
- - - - - -

EX (SP),HL
E
- - - - - - 1
EX (SP),IX
DD E
- - - - - - 
EX (SP),IY
FD E
- - - - - - 

1.
ADD - ADDition

C Z P/V S N H t


ADD A,N
C N
* * V * 0 *
ADD A,B
80
* * V * 0 *


ADD A,C
81
* * V * 0 *

ADD A,D
8
* * V * 0 *

ADD A,E
8
* * V * 0 *

ADD A,H
8
* * V * 0 *

ADD A,L
8
* * V * 0 *

ADD A,(HL)
8
* * V * 0 *

ADD A,A
8
* * V * 0 *

ADD A,HX
DD 8
* * V * 0 *
8
ADD A,HY
FD 8
* * V * 0 *
8
ADD A,LX
DD 8
* * V * 0 *
8
ADD A,LY
FD 8
* * V * 0 *
8
ADD A,(IXS) DD 8 S
* * V * 0 * 1
ADD A,(IYS) FD 8 S
* * V * 0 * 1

ADD HL,BC
0
* - - - 0 ? 11
ADD HL,DE
1
* - - - 0 ? 11
ADD HL,HL

* - - - 0 ? 11
ADD HL,SP

* - - - 0 ? 11
ADD IX,BC
DD 0
* - - - 0 ? 1
ADD IX,DE
DD 1
* - - - 0 ? 1
ADD IX,IX
DD 
* - - - 0 ? 1
ADD IX,SP
DD 
* - - - 0 ? 1
ADD IY,BC
FD 0
* - - - 0 ? 1
ADD IY,DE
FD 1
* - - - 0 ? 1
ADD IY,IY
FD 
* - - - 0 ? 1
ADD IY,SP
FD 
* - - - 0 ? 1

1.
INC - INCrement

C Z P/V S N H t

INC B
0
- * V * 0 *

INC C
0C
- * V * 0 *

INC D
1
- * V * 0 *

INC E
1C
- * V * 0 *

INC H

- * V * 0 *

INC L
C
- * V * 0 *

INC (HL)

- * V * 0 * 11
INC A
C
- * V * 0 *

INC HX
DD 
- * V * 0 *
8
INC HY
FD 
- * V * 0 *
8
INC LX
DD C
- * V * 0 *
8
INC LY
FD C
- * V * 0 *
8
INC (IXS)
DD  S
- * V * 0 * 
INC (IYS)
FD  S
- * V * 0 * 

INC BC
0
- - - - - -

INC DE
1
- - - - - -


INC HL

- - - - - -

INC SP

- - - - - -
INC IX
DD 
- - - - - - 10
INC IY
FD 
- - - - - - 10

1.
ADC - ADdition with Carry

C Z P/V S N H t


ADC A,B
88
* * V * 0 *

ADC A,C
8
* * V * 0 *

ADC A,D
8A
* * V * 0 *

ADC A,E
8B
* * V * 0 *

ADC A,H
8C
* * V * 0 *

ADC A,L
8D
* * V * 0 *


ADC A,(HL)
8E
* * V * 0 *
ADC A,A
8F
* * V * 0 *

ADC A,N
CE N
* * V * 0 *

ADC A,HX
DD 8C
* * V * 0 *
8
ADC A,HY
FD 8C
* * V * 0 *
8
ADC A,LX
DD 8D
* * V * 0 *
8
ADC A,LY
FD 8D
* * V * 0 *
8
ADC A,(IXS) DD 8E S
* * V * 0 * 1
ADC A,(IYS) FD 8E S
* * V * 0 * 1

ADC HL,BC
ED A
* * V * 0 ? 1
ADC HL,DE
ED A
* * V * 0 ? 1
ADC HL,HL
ED A
* * V * 0 ? 1
ADC HL,SP
ED A
* * V * 0 ? 1

1.
S B - S Btract

C Z P/V S N H t

S B N
D N
* * V * 1 *

S B B
0
* * V * 1 *

S B C
1
* * V * 1 *

S B D

* * V * 1 *

S B E

* * V * 1 *

S B H

* * V * 1 *

S B L

* * V * 1 *


S B (HL)

* * V * 1 *
S B A

* * V * 1 *

S B HX
DD 
* * V * 1 *
8
S B HY
FD 
* * V * 1 *
8
S B LX
DD 
* * V * 1 *
8
S B LY
FD 
* * V * 1 *
8
S B (IXS)
DD  S
* * V * 1 * 1
S B (IYS)
FD  S
* * V * 1 * 1

1.
DEC - DECrement

C Z P/V S N H t

DEC B
0
- * V * 1 *

DEC C
0D
- * V * 1 *

DEC D
1
- * V * 1 *

DEC E
1D
- * V * 1 *

DEC H

- * V * 1 *

DEC HX
DD 
- * V * 1 *
8
DEC HY
FD 
- * V * 1 *
8
DEC L
D
- * V * 1 *

DEC LX
DD D
- * V * 1 *
8
DEC LY
FD D
- * V * 1 *
8

DEC (HL)

- * V * 1 * 11
DEC (IXS)
DD  S
- * V * 1 * 
DEC (IYS)
FD  S
- * V * 1 * 
DEC A
D
- * V * 1 *


DEC BC
0B
- - - - - -


DEC DE
1B
- - - - - -

DEC HL
B
- - - - - -
DEC SP
B
- - - - - -

DEC IX
DD B
- - - - - - 10
DEC IY
FD B
- - - - - - 10

1.
SBC - SuBtract with Carry

C Z P/V S N H t


SBC A,N
DE N
* * V * 1 *
SBC A,B
8
* * V * 1 *

SBC A,C

* * V * 1 *

SBC A,D
A
* * V * 1 *

SBC A,E
B
* * V * 1 *

SBC A,H
C
* * V * 1 *

SBC A,L
D
* * V * 1 *

SBC A,(HL)
E
* * V * 1 *

SBC A,A
F
* * V * 1 *

SBC A,HX
DD C
* * V * 1 *
8
SBC A,HY
FD C
* * V * 1 *
8
SBC A,LX
DD D
* * V * 1 *
8
SBC A,LY
FD D
* * V * 1 *
8
SBC A,(IXS) DD E S
* * V * 1 * 1
SBC A,(IYS) FD E S
* * V * 1 * 1

SBC HL,HL
ED 
* * V * 1 ? 1
SBC HL,BC
ED 
* * V * 1 ? 1
SBC HL,DE
ED 
* * V * 1 ? 1
SBC HL,SP
ED 
* * V * 1 ? 1

18.

A
s

Z
1

Z
A s
Z
0

NZ

( 0...)

A s
CY
1

C
A
s CY
0

NC

( -18...1)

A s

S
1

P
A
s
S
0


CP -ComPare

C Z P/V S N H t


CP N
FE N
* * V * 1 *
CP B
B8
* * V * 1 *

CP C
B
* * V * 1 *

CP D
BA
* * V * 1 *

CP E
BB
* * V * 1 *

CP H
BC
* * V * 1 *

CP HX
DD BC
* * V * 1 *
8
CP HY
FD BC
* * V * 1 *
8
CP L
BD
* * V * 1 *

CP LX
DD BD
* * V * 1 *
8
CP LY
FD BD
* * V * 1 *
8
CP (HL)
BE
* * V * 1 *

CP (IXS)
DD BE S
* * V * 1 * 1
CP (IYS)
FD BE S
* * V * 1 * 1
CP A
BF
* * V * 1 *


1.
AND -
R -
XR -

C Z P/V S N H t


AND N
E N
0 * P * 0 1
AND B
A0
0 * P * 0 1

AND C
A1
0 * P * 0 1

AND D
A
0 * P * 0 1

AND E
A
0 * P * 0 1

AND H
A
0 * P * 0 1

AND HX
DD A
0 * P * 0 1
8
AND HY
FD A
0 * P * 0 1
8
AND L
A
0 * P * 0 1

AND LX
DD A
0 * P * 0 1
8
AND LY
FD A
0 * P * 0 1
8
AND (HL)
A
0 * P * 0 1

AND (IXS)
DD A S
0 * P * 0 1 1
AND (IYS)
FD A S
0 * P * 0 1 1
AND A
A
0 * P * 0 1



R N
F N
0 * P * 0 0
R B
B0
0 * P * 0 0

R C
B1
0 * P * 0 0

R D
B
0 * P * 0 0

R E
B
0 * P * 0 0

R H
B
0 * P * 0 0

R HX
DD B
0 * P * 0 0
8
R HY
FD B
0 * P * 0 0
8
R L
B
0 * P * 0 0

R LX
DD B
0 * P * 0 0
8
R LY
FD B
0 * P * 0 0
8
R (HL)
B
0 * P * 0 0

R (IXS)
DD B S
0 * P * 0 0 1
R (IYS)
FD B S
0 * P * 0 0 1
R A
B
0 * P * 0 0



XR N
EE N
0 * P * 0 0
XR B
A8
0 * P * 0 0


XR C
A
0 * P * 0 0

XR D
AA
0 * P * 0 0

XR E
AB
0 * P * 0 0

XR H
AC
0 * P * 0 0

XR HX
DD AC
0 * P * 0 0
8
XR HY
FD AC
0 * P * 0 0
8
XR L
AD
0 * P * 0 0

XR LX
DD AD
0 * P * 0 0
8
XR LY
FD AD
0 * P * 0 0
8
XR (HL)
AE
0 * P * 0 0

XR (IXS)
DD AE S
0 * P * 0 0 1
XR (IYS)
FD AE S
0 * P * 0 0 1
XR A
AF
0 * P * 0 0


0.
JP - JumP
JR - Jump Relative
DJNZ - Decrement and Jump if Not Zero
C - Carry
NC - No Carry
Z - Zero
NZ - No Zero
P - Plus
- inus
PE - Parity Even
P - Parity dd

C Z P/V S N H t

JP Nn
C n N
- - - - - - 10
JP (HL)
E
- - - - - -

JP (IX)
DD E
- - - - - -
8
JP (IY)
FD E
- - - - - -
8
JP NZ,Nn
C n N
- - - - - - 10
JP Z,Nn
CA n N
- - - - - - 10
JP NC,Nn
D n N
- - - - - - 10
JP C,Nn
DA n N
- - - - - - 10
JP P,Nn
E n N
- - - - - - 10
JP PE,Nn
EA n N
- - - - - - 10
JP P,Nn
F n N
- - - - - - 10
JP ,Nn
FA n N
- - - - - - 10

JR S
18 S
- - - - - - 1
JR NZ,S
0 S
- - - - - - /1
JR Z,S
8 S
- - - - - - /1
JR NC,S
0 S
- - - - - - /1
JR C,S
8 S
- - - - - - /1

DJNZ S
10 S
- - - - - - 8/1

1.
P SH -
PP -

C Z P/V S N H t

P SH BC
C
- - - - - - 11

P SH DE
D
- - - - - - 11
P SH HL
E
- - - - - - 11
P SH IX
DD E
- - - - - - 1
P SH IY
FD E
- - - - - - 1
P SH AF
F
- - - - - - 11

PP BC
C1
- - - - - - 10
PP DE
D1
- - - - - - 10
PP HL
E1
- - - - - - 10
PP IX
DD E1
- - - - - - 1
PP IY
FD E1
- - - - - - 1
PP AF
F1
- - - - - - 10

.
RST - ReSTart

C Z P/V S N H t

RST 0
C
- - - - - - 11
RST 8
CF
- - - - - - 11
RST 10
D
- - - - - - 11
RST 18
DF
- - - - - - 11
RST 0
E
- - - - - - 11
RST 8
EF
- - - - - - 11
RST 0
F
- - - - - - 11
RST 8
FF
- - - - - - 11

. .
RET - RETurn

C Z P/V S N H t

CALL Nn
CD n N
- - - - - - 1
CALL NZ,Nn
C n N
- - - - - -10/1
CALL Z,Nn
CC n N
- - - - - -10/1
CALL NC,Nn
D n N
- - - - - -10/1
CALL C,Nn
DC n N
- - - - - -10/1
CALL P,Nn
E n N
- - - - - -10/1
CALL PE,Nn
EC n N
- - - - - -10/1
CALL P,Nn
F n N
- - - - - -10/1
CALL ,Nn
FC n N
- - - - - -10/1

RET
C
- - - - - - 10
RET NZ
C0
- - - - - - /11
RET Z
C8
- - - - - - /11
RET NC
D0
- - - - - - /11
RET C
D8
- - - - - - /11
RET P
E0
- - - - - - /11
RET PE
E8
- - - - - - /11
RET P
F0
- - - - - - /11
RET
F8
- - - - - - /11

. .
SRL - Shift Right Logical
SRA - Shift Right Arithmetic
SLA - Shift Left Arithmetic
SLI - Shift Left ?

C Z P/V S N H t

SRL A
CB F
* * P * 0 0
8
SRL B
CB 8
* * P * 0 0
8
SRL C
CB 
* * P * 0 0
8
SRL D
CB A
* * P * 0 0
8
SRL E
CB B
* * P * 0 0
8
SRL H
CB C
* * P * 0 0
8
SRL L
CB D
* * P * 0 0
8
SRL (HL)
CB E
* * P * 0 0 1
SRL (IXS)
DD CB S E * * P * 0 0 
SRL (IYS)
FD CB S E * * P * 0 0 

SRL A,(IXS) DD CB S F * * P * 0 0 *


SRL B,(IXS) DD CB S 8 * * P * 0 0 *
SRL C,(IXS) DD CB S  * * P * 0 0 *
SRL D,(IXS) DD CB S A * * P * 0 0 *
SRL E,(IXS) DD CB S B * * P * 0 0 *
SRL H,(IXS) DD CB S C * * P * 0 0 *
SRL L,(IXS) DD CB S D * * P * 0 0 *
SRL A,(IYS) FD CB S F * * P * 0 0 *
SRL B,(IYS) FD CB S 8 * * P * 0 0 *
SRL C,(IYS) FD CB S  * * P * 0 0 *
SRL D,(IYS) FD CB S A * * P * 0 0 *
SRL E,(IYS) FD CB S B * * P * 0 0 *
SRL H,(IYS) FD CB S C * * P * 0 0 *
SRL L,(IYS) FD CB S D * * P * 0 0 *

SRA A
CB F
* * P * 0 0
8
SRA B
CB 8
* * P * 0 0
8
SRA C
CB 
* * P * 0 0
8
SRA D
CB A
* * P * 0 0
8
SRA E
CB B
* * P * 0 0
8
SRA H
CB C
* * P * 0 0
8
SRA L
CB D
* * P * 0 0
8
SRA (HL)
CB E
* * P * 0 0 1
SRA (IXS)
DD CB S E * * P * 0 0 
SRA (IYS)
FD CB S E * * P * 0 0 

SRA A,(IXS) DD CB S F * * P * 0 0 *


SRA B,(IXS) DD CB S 8 * * P * 0 0 *
SRA C,(IXS) DD CB S  * * P * 0 0 *
SRA D,(IXS) DD CB S A * * P * 0 0 *
SRA E,(IXS) DD CB S B * * P * 0 0 *
SRA H,(IXS) DD CB S C * * P * 0 0 *
SRA L,(IXS) DD CB S D * * P * 0 0 *
SRA A,(IYS) FD CB S F * * P * 0 0 *
SRA B,(IYS) FD CB S 8 * * P * 0 0 *
SRA C,(IYS) FD CB S  * * P * 0 0 *
SRA D,(IYS) FD CB S A * * P * 0 0 *
SRA E,(IYS) FD CB S B * * P * 0 0 *
SRA H,(IYS) FD CB S C * * P * 0 0 *
SRA L,(IYS) FD CB S D * * P * 0 0 *

SLA A
CB 
* * P * 0 0
8
SLA B
CB 0
* * P * 0 0
8
SLA C
CB 1
* * P * 0 0
8
SLA D
CB 
* * P * 0 0
8
SLA E
CB 
* * P * 0 0
8

SLA H
CB 
* * P * 0 0
8
SLA L
CB 
* * P * 0 0
8
SLA (HL)
CB 
* * P * 0 0 1
SLA (IXS)
DD CB S  * * P * 0 0 
SLA (IYS)
FD CB S  * * P * 0 0 

SLA A,(IXS) DD CB S  * * P * 0 0 *


SLA B,(IXS) DD CB S 0 * * P * 0 0 *
SLA C,(IXS) DD CB S 1 * * P * 0 0 *
SLA D,(IXS) DD CB S  * * P * 0 0 *
SLA E,(IXS) DD CB S  * * P * 0 0 *
SLA H,(IXS) DD CB S  * * P * 0 0 *
SLA L,(IXS) DD CB S  * * P * 0 0 *
SLA A,(IYS) FD CB S  * * P * 0 0 *
SLA B,(IYS) FD CB S 0 * * P * 0 0 *
SLA C,(IYS) FD CB S 1 * * P * 0 0 *
SLA D,(IYS) FD CB S  * * P * 0 0 *
SLA E,(IYS) FD CB S  * * P * 0 0 *
SLA H,(IYS) FD CB S  * * P * 0 0 *
SLA L,(IYS) FD CB S  * * P * 0 0 *

SLI A
CB 
* * P * 0 0
8
SLI B
CB 0
* * P * 0 0
8
SLI C
CB 1
* * P * 0 0
8
SLI D
CB 
* * P * 0 0
8
SLI E
CB 
* * P * 0 0
8
SLI H
CB 
* * P * 0 0
8
SLI L
CB 
* * P * 0 0
8
SLI (HL)
CB 
* * P * 0 0 1
SLI (IXS)
DD CB S  * * P * 0 0 
SLI (IYS)
FD CB S  * * P * 0 0 

SLI A,(IXS) DD CB S  * * P * 0 0 *


SLI B,(IXS) DD CB S 0 * * P * 0 0 *
SLI C,(IXS) DD CB S 1 * * P * 0 0 *
SLI D,(IXS) DD CB S  * * P * 0 0 *
SLI E,(IXS) DD CB S  * * P * 0 0 *
SLI H,(IXS) DD CB S  * * P * 0 0 *
SLI L,(IXS) DD CB S  * * P * 0 0 *
SLI A,(IYS) FD CB S  * * P * 0 0 *
SLI B,(IYS) FD CB S 0 * * P * 0 0 *
SLI C,(IYS) FD CB S 1 * * P * 0 0 *
SLI D,(IYS) FD CB S  * * P * 0 0 *
SLI E,(IYS) FD CB S  * * P * 0 0 *
SLI H,(IYS) FD CB S  * * P * 0 0 *
SLI L,(IYS) FD CB S  * * P * 0 0 *

.
RL - Rotate Left
RR - Rotate Right
RLC - Rotate Left without Carry
RRC - Rotate Right without Carry
RLA - Rotate Left Accumulator
RRA - Rotate Right Accumulator
RLCA - Rotate Left Accumulator without Carry
RRCA - Rotate Right Accumulator without Carry
RLD - Rotate Left Decimal
RRD - Rotate Right Decimal

C Z P/V S N H t

RL A
CB 1
* * P * 0 0
8
RL B
CB 10
* * P * 0 0
8
RL C
CB 11
* * P * 0 0
8
RL D
CB 1
* * P * 0 0
8
RL E
CB 1
* * P * 0 0
8
RL H
CB 1
* * P * 0 0
8
RL L
CB 1
* * P * 0 0
8
RL (HL)
CB 1
* * P * 0 0 1
RL (IXS)
DD CB S 1 * * P * 0 0 
RL (IYS)
FD CB S 1 * * P * 0 0 

RL A,(IXS)
DD CB S 1 * * P * 0 0 *
RL B,(IXS)
DD CB S 10 * * P * 0 0 *
RL C,(IXS)
DD CB S 11 * * P * 0 0 *
RL D,(IXS)
DD CB S 1 * * P * 0 0 *
RL E,(IXS)
DD CB S 1 * * P * 0 0 *
RL H,(IXS)
DD CB S 1 * * P * 0 0 *
RL L,(IXS)
DD CB S 1 * * P * 0 0 *
RL A,(IYS)
FD CB S 1 * * P * 0 0 *
RL B,(IYS)
FD CB S 10 * * P * 0 0 *
RL C,(IYS)
FD CB S 11 * * P * 0 0 *
RL D,(IYS)
FD CB S 1 * * P * 0 0 *
RL E,(IYS)
FD CB S 1 * * P * 0 0 *
RL H,(IYS)
FD CB S 1 * * P * 0 0 *
RL L,(IYS)
FD CB S 1 * * P * 0 0 *

RR A
CB 1F
* * P * 0 0
8
RR B
CB 18
* * P * 0 0
8
RR C
CB 1
* * P * 0 0
8
RR D
CB 1A
* * P * 0 0
8
RR E
CB 1B
* * P * 0 0
8
RR H
CB 1C
* * P * 0 0
8
RR L
CB 1D
* * P * 0 0
8
RR (HL)
CB 1E
* * P * 0 0 1
RR (IXS)
DD CB S 1E * * P * 0 0 
RR (IYS)
FD CB S 1E * * P * 0 0 

RR A,(IXS)
DD CB S 1F * * P * 0 0 *
RR B,(IXS)
DD CB S 18 * * P * 0 0 *
RR C,(IXS)
DD CB S 1 * * P * 0 0 *
RR D,(IXS)
DD CB S 1A * * P * 0 0 *
RR E,(IXS)
DD CB S 1B * * P * 0 0 *
RR H,(IXS)
DD CB S 1C * * P * 0 0 *
RR L,(IXS)
DD CB S 1D * * P * 0 0 *
RR A,(IYS)
FD CB S 1F * * P * 0 0 *
RR B,(IYS)
FD CB S 18 * * P * 0 0 *
RR C,(IYS)
FD CB S 1 * * P * 0 0 *
RR D,(IYS)
FD CB S 1A * * P * 0 0 *
RR E,(IYS)
FD CB S 1B * * P * 0 0 *
RR H,(IYS)
FD CB S 1C * * P * 0 0 *
RR L,(IYS)
FD CB S 1D * * P * 0 0 *

RLC A
CB 0
* * P * 0 0
8
RLC B
CB 00
* * P * 0 0
8
RLC C
CB 01
* * P * 0 0
8
RLC D
CB 0
* * P * 0 0
8
RLC E
CB 0
* * P * 0 0
8
RLC H
CB 0
* * P * 0 0
8

RLC L
CB 0
* * P * 0 0
8
RLC (HL)
CB 0
* * P * 0 0 1
RLC (IXS)
DD CB S 0 * * P * 0 0 
RLC (IYS)
FD CB S 0 * * P * 0 0 

RLC A,(IXS) DD CB S 0 * * P * 0 0 *


RLC B,(IXS) DD CB S 00 * * P * 0 0 *
RLC C,(IXS) DD CB S 01 * * P * 0 0 *
RLC D,(IXS) DD CB S 0 * * P * 0 0 *
RLC E,(IXS) DD CB S 0 * * P * 0 0 *
RLC H,(IXS) DD CB S 0 * * P * 0 0 *
RLC L,(IXS) DD CB S 0 * * P * 0 0 *
RLC A,(IYS) FD CB S 0 * * P * 0 0 *
RLC B,(IYS) FD CB S 00 * * P * 0 0 *
RLC C,(IYS) FD CB S 01 * * P * 0 0 *
RLC D,(IYS) FD CB S 0 * * P * 0 0 *
RLC E,(IYS) FD CB S 0 * * P * 0 0 *
RLC H,(IYS) FD CB S 0 * * P * 0 0 *
RLC L,(IYS) FD CB S 0 * * P * 0 0 *

RRC A
CB 0F
* * P * 0 0
8
RRC B
CB 08
* * P * 0 0
8
RRC C
CB 0
* * P * 0 0
8
RRC D
CB 0A
* * P * 0 0
8
RRC E
CB 0B
* * P * 0 0
8
RRC H
CB 0C
* * P * 0 0
8
RRC L
CB 0D
* * P * 0 0
8
RRC (HL)
CB 0E
* * P * 0 0 1
RRC (IXS)
DD CB S 0E * * P * 0 0 
RRC (IYS)
FD CB S 0E * * P * 0 0 

RRC A,(IXS) DD CB S 0F * * P * 0 0 *


RRC B,(IXS) DD CB S 08 * * P * 0 0 *
RRC C,(IXS) DD CB S 0 * * P * 0 0 *
RRC D,(IXS) DD CB S 0A * * P * 0 0 *
RRC E,(IXS) DD CB S 0B * * P * 0 0 *
RRC H,(IXS) DD CB S 0C * * P * 0 0 *
RRC L,(IXS) DD CB S 0D * * P * 0 0 *
RRC A,(IYS) FD CB S 0F * * P * 0 0 *
RRC B,(IYS) FD CB S 08 * * P * 0 0 *
RRC C,(IYS) FD CB S 0 * * P * 0 0 *
RRC D,(IYS) FD CB S 0A * * P * 0 0 *
RRC E,(IYS) FD CB S 0B * * P * 0 0 *
RRC H,(IYS) FD CB S 0C * * P * 0 0 *
RRC L,(IYS) FD CB S 0D * * P * 0 0 *

RLA
1
* - - - 0 0

RRA
1F
* - - - 0 0

RLCA
0
* - - - 0 0

RRCA
0F
* - - - 0 0


RLD
ED F
- * P * 0 0 18
RRD
ED 
- * P * 0 0 18

.

C Z P/V S N H t

SET 0,A
CB C
- - - - - -
8

SET 0,B
CB C0
- - - - - -
8
SET 0,C
CB C1
- - - - - -
8
SET 0,D
CB C
- - - - - -
8
SET 0,E
CB C
- - - - - -
8
SET 0,H
CB C
- - - - - -
8
SET 0,L
CB C
- - - - - -
8
SET 0,(HL)
CB C
- - - - - - 1
SET 0,(IXS) DD CB S C - - - - - - 
SET 0,(IYS) FD CB S C - - - - - - 

SET 0,A,(IXS) DD CB S C - - - - - - *


SET 0,B,(IXS) DD CB S C0 - - - - - - *
SET 0,C,(IXS) DD CB S C1 - - - - - - *
SET 0,D,(IXS) DD CB S C - - - - - - *
SET 0,E,(IXS) DD CB S C - - - - - - *
SET 0,H,(IXS) DD CB S C - - - - - - *
SET 0,L,(IXS) DD CB S C - - - - - - *
SET 0,A,(IYS) FD CB S C - - - - - - *
SET 0,B,(IYS) FD CB S C0 - - - - - - *
SET 0,C,(IYS) FD CB S C1 - - - - - - *
SET 0,D,(IYS) FD CB S C - - - - - - *
SET 0,E,(IYS) FD CB S C - - - - - - *
SET 0,H,(IYS) FD CB S C - - - - - - *
SET 0,L,(IYS) FD CB S C - - - - - - *

SET 1,A
CB CF
- - - - - -
8
SET 1,B
CB C8
- - - - - -
8
SET 1,C
CB C
- - - - - -
8
SET 1,D
CB CA
- - - - - -
8
SET 1,E
CB CB
- - - - - -
8
SET 1,H
CB CC
- - - - - -
8
SET 1,L
CB CD
- - - - - -
8
SET 1,(HL)
CB CE
- - - - - - 1
SET 1,(IXS) DD CB S CE - - - - - - 
SET 1,(IYS) FD CB S CE - - - - - - 

SET 1,A,(IXS) DD CB S CF - - - - - - *


SET 1,B,(IXS) DD CB S C8 - - - - - - *
SET 1,C,(IXS) DD CB S C - - - - - - *
SET 1,D,(IXS) DD CB S CA - - - - - - *
SET 1,E,(IXS) DD CB S CB - - - - - - *
SET 1,H,(IXS) DD CB S CC - - - - - - *
SET 1,L,(IXS) DD CB S CD - - - - - - *
SET 1,A,(IYS) FD CB S CF - - - - - - *
SET 1,B,(IYS) FD CB S C8 - - - - - - *
SET 1,C,(IYS) FD CB S C - - - - - - *
SET 1,D,(IYS) FD CB S CA - - - - - - *
SET 1,E,(IYS) FD CB S CB - - - - - - *
SET 1,H,(IYS) FD CB S CC - - - - - - *
SET 1,L,(IYS) FD CB S CD - - - - - - *

SET ,A
CB D
- - - - - -
8
SET ,B
CB D0
- - - - - -
8
SET ,C
CB D1
- - - - - -
8
SET ,D
CB D
- - - - - -
8
SET ,E
CB D
- - - - - -
8
SET ,H
CB D
- - - - - -
8
SET ,L
CB D
- - - - - -
8
SET ,(HL)
CB D
- - - - - - 1
SET ,(IXS) DD CB S D - - - - - - 

SET ,(IYS) FD CB S D - - - - - - 

SET ,A,(IXS) DD CB S D - - - - - - *


SET ,B,(IXS) DD CB S D0 - - - - - - *
SET ,C,(IXS) DD CB S D1 - - - - - - *
SET ,D,(IXS) DD CB S D - - - - - - *
SET ,E,(IXS) DD CB S D - - - - - - *
SET ,H,(IXS) DD CB S D - - - - - - *
SET ,L,(IXS) DD CB S D - - - - - - *
SET ,A,(IYS) FD CB S D - - - - - - *
SET ,B,(IYS) FD CB S D0 - - - - - - *
SET ,C,(IYS) FD CB S D1 - - - - - - *
SET ,D,(IYS) FD CB S D - - - - - - *
SET ,E,(IYS) FD CB S D - - - - - - *
SET ,H,(IYS) FD CB S D - - - - - - *
SET ,L,(IYS) FD CB S D - - - - - - *

SET ,A
CB DF
- - - - - -
8
SET ,B
CB D8
- - - - - -
8
SET ,C
CB D
- - - - - -
8
SET ,D
CB DA
- - - - - -
8
SET ,E
CB DB
- - - - - -
8
SET ,H
CB DC
- - - - - -
8
SET ,L
CB DD
- - - - - -
8
SET ,(HL)
CB DE
- - - - - - 1
SET ,(IXS) DD CB S DE - - - - - - 
SET ,(IYS) FD CB S DE - - - - - - 

SET ,A,(IXS) DD CB S DF - - - - - - *


SET ,B,(IXS) DD CB S D8 - - - - - - *
SET ,C,(IXS) DD CB S D - - - - - - *
SET ,D,(IXS) DD CB S DA - - - - - - *
SET ,E,(IXS) DD CB S DB - - - - - - *
SET ,H,(IXS) DD CB S DC - - - - - - *
SET ,L,(IXS) DD CB S DD - - - - - - *
SET ,A,(IYS) FD CB S DF - - - - - - *
SET ,B,(IYS) FD CB S D8 - - - - - - *
SET ,C,(IYS) FD CB S D - - - - - - *
SET ,D,(IYS) FD CB S DA - - - - - - *
SET ,E,(IYS) FD CB S DB - - - - - - *
SET ,H,(IYS) FD CB S DC - - - - - - *
SET ,L,(IYS) FD CB S DD - - - - - - *

SET ,A
CB E
- - - - - -
8
SET ,B
CB E0
- - - - - -
8
SET ,C
CB E1
- - - - - -
8
SET ,D
CB E
- - - - - -
8
SET ,E
CB E
- - - - - -
8
SET ,H
CB E
- - - - - -
8
SET ,L
CB E
- - - - - -
8
SET ,(HL)
CB E
- - - - - - 1
SET ,(IXS) DD CB S E - - - - - - 
SET ,(IYS) FD CB S E - - - - - - 

SET ,A,(IXS) DD CB S E - - - - - - *


SET ,B,(IXS) DD CB S E0 - - - - - - *
SET ,C,(IXS) DD CB S E1 - - - - - - *
SET ,D,(IXS) DD CB S E - - - - - - *
SET ,E,(IXS) DD CB S E - - - - - - *
SET ,H,(IXS) DD CB S E - - - - - - *

SET ,L,(IXS) DD CB S E - - - - - - *


SET ,A,(IYS) FD CB S E - - - - - - *
SET ,B,(IYS) FD CB S E0 - - - - - - *
SET ,C,(IYS) FD CB S E1 - - - - - - *
SET ,D,(IYS) FD CB S E - - - - - - *
SET ,E,(IYS) FD CB S E - - - - - - *
SET ,H,(IYS) FD CB S E - - - - - - *
SET ,L,(IYS) FD CB S E - - - - - - *

SET ,A
CB EF
- - - - - -
8
SET ,B
CB E8
- - - - - -
8
SET ,C
CB E
- - - - - -
8
SET ,D
CB EA
- - - - - -
8
SET ,E
CB EB
- - - - - -
8
SET ,H
CB EC
- - - - - -
8
SET ,L
CB ED
- - - - - -
8
SET ,(HL)
CB EE
- - - - - - 1
SET ,(IXS) DD CB S EE - - - - - - 
SET ,(IYS) FD CB S EE - - - - - - 

SET ,A,(IXS) DD CB S EF - - - - - - *


SET ,B,(IXS) DD CB S E8 - - - - - - *
SET ,C,(IXS) DD CB S E - - - - - - *
SET ,D,(IXS) DD CB S EA - - - - - - *
SET ,E,(IXS) DD CB S EB - - - - - - *
SET ,H,(IXS) DD CB S EC - - - - - - *
SET ,L,(IXS) DD CB S ED - - - - - - *
SET ,A,(IYS) FD CB S EF - - - - - - *
SET ,B,(IYS) FD CB S E8 - - - - - - *
SET ,C,(IYS) FD CB S E - - - - - - *
SET ,D,(IYS) FD CB S EA - - - - - - *
SET ,E,(IYS) FD CB S EB - - - - - - *
SET ,H,(IYS) FD CB S EC - - - - - - *
SET ,L,(IYS) FD CB S ED - - - - - - *

SET ,A
CB F
- - - - - -
8
SET ,B
CB F0
- - - - - -
8
SET ,C
CB F1
- - - - - -
8
SET ,D
CB F
- - - - - -
8
SET ,E
CB F
- - - - - -
8
SET ,H
CB F
- - - - - -
8
SET ,L
CB F
- - - - - -
8
SET ,(HL)
CB F
- - - - - - 1
SET ,(IXS) DD CB S F - - - - - - 
SET ,(IYS) FD CB S F - - - - - - 

SET ,A,(IXS) DD CB S F - - - - - - *


SET ,B,(IXS) DD CB S F0 - - - - - - *
SET ,C,(IXS) DD CB S F1 - - - - - - *
SET ,D,(IXS) DD CB S F - - - - - - *
SET ,E,(IXS) DD CB S F - - - - - - *
SET ,H,(IXS) DD CB S F - - - - - - *
SET ,L,(IXS) DD CB S F - - - - - - *
SET ,A,(IYS) FD CB S F - - - - - - *
SET ,B,(IYS) FD CB S F0 - - - - - - *
SET ,C,(IYS) FD CB S F1 - - - - - - *
SET ,D,(IYS) FD CB S F - - - - - - *
SET ,E,(IYS) FD CB S F - - - - - - *
SET ,H,(IYS) FD CB S F - - - - - - *
SET ,L,(IYS) FD CB S F - - - - - - *


SET ,A
CB FF
- - - - - -
8
SET ,B
CB F8
- - - - - -
8
SET ,C
CB F
- - - - - -
8
SET ,D
CB FA
- - - - - -
8
SET ,E
CB FB
- - - - - -
8
SET ,H
CB FC
- - - - - -
8
SET ,L
CB FD
- - - - - -
8
SET ,(HL)
CB FE
- - - - - - 1
SET ,(IXS) DD CB S FE - - - - - - 
SET ,(IYS) FD CB S FE - - - - - - 

SET ,A,(IXS) DD CB S FF - - - - - - *


SET ,B,(IXS) DD CB S F8 - - - - - - *
SET ,C,(IXS) DD CB S F - - - - - - *
SET ,D,(IXS) DD CB S FA - - - - - - *
SET ,E,(IXS) DD CB S FB - - - - - - *
SET ,H,(IXS) DD CB S FC - - - - - - *
SET ,L,(IXS) DD CB S FD - - - - - - *
SET ,A,(IYS) FD CB S FF - - - - - - *
SET ,B,(IYS) FD CB S F8 - - - - - - *
SET ,C,(IYS) FD CB S F - - - - - - *
SET ,D,(IYS) FD CB S FA - - - - - - *
SET ,E,(IYS) FD CB S FB - - - - - - *
SET ,H,(IYS) FD CB S FC - - - - - - *
SET ,L,(IYS) FD CB S FD - - - - - - *

.
RES - RESet

C Z P/V S N H t

RES 0,A
CB 8
- - - - - -
8
RES 0,B
CB 80
- - - - - -
8
RES 0,C
CB 81
- - - - - -
8
RES 0,D
CB 8
- - - - - -
8
RES 0,E
CB 8
- - - - - -
8
RES 0,H
CB 8
- - - - - -
8
RES 0,L
CB 8
- - - - - -
8
RES 0,(HL)
CB 8
- - - - - - 1
RES 0,(IXS) DD CB S 8 - - - - - - 
RES 0,(IYS) FD CB S 8 - - - - - - 

RES 0,A,(IXS) DD CB S 8 - - - - - - *


RES 0,B,(IXS) DD CB S 80 - - - - - - *
RES 0,C,(IXS) DD CB S 81 - - - - - - *
RES 0,D,(IXS) DD CB S 8 - - - - - - *
RES 0,E,(IXS) DD CB S 8 - - - - - - *
RES 0,H,(IXS) DD CB S 8 - - - - - - *
RES 0,L,(IXS) DD CB S 8 - - - - - - *
RES 0,A,(IYS) FD CB S 8 - - - - - - *
RES 0,B,(IYS) FD CB S 80 - - - - - - *
RES 0,C,(IYS) FD CB S 81 - - - - - - *
RES 0,D,(IYS) FD CB S 8 - - - - - - *
RES 0,E,(IYS) FD CB S 8 - - - - - - *
RES 0,H,(IYS) FD CB S 8 - - - - - - *
RES 0,L,(IYS) FD CB S 8 - - - - - - *

RES 1,A
CB 8F
- - - - - -
8

RES 1,B
CB 88
- - - - - -
8
RES 1,C
CB 8
- - - - - -
8
RES 1,D
CB 8A
- - - - - -
8
RES 1,E
CB 8B
- - - - - -
8
RES 1,H
CB 8C
- - - - - -
8
RES 1,L
CB 8D
- - - - - -
8
RES 1,(HL)
CB 8E
- - - - - - 1
RES 1,(IXS) DD CB S 8E - - - - - - 
RES 1,(IYS) FD CB S 8E - - - - - - 

RES 1,A,(IXS) DD CB S 8F - - - - - - *


RES 1,B,(IXS) DD CB S 88 - - - - - - *
RES 1,C,(IXS) DD CB S 8 - - - - - - *
RES 1,D,(IXS) DD CB S 8A - - - - - - *
RES 1,E,(IXS) DD CB S 8B - - - - - - *
RES 1,H,(IXS) DD CB S 8C - - - - - - *
RES 1,L,(IXS) DD CB S 8D - - - - - - *
RES 1,A,(IYS) FD CB S 8F - - - - - - *
RES 1,B,(IYS) FD CB S 88 - - - - - - *
RES 1,C,(IYS) FD CB S 8 - - - - - - *
RES 1,D,(IYS) FD CB S 8A - - - - - - *
RES 1,E,(IYS) FD CB S 8B - - - - - - *
RES 1,H,(IYS) FD CB S 8C - - - - - - *
RES 1,L,(IYS) FD CB S 8D - - - - - - *

RES ,A
CB 
- - - - - -
8
RES ,B
CB 0
- - - - - -
8
RES ,C
CB 1
- - - - - -
8
RES ,D
CB 
- - - - - -
8
RES ,E
CB 
- - - - - -
8
RES ,H
CB 
- - - - - -
8
RES ,L
CB 
- - - - - -
8
RES ,(HL)
CB 
- - - - - - 1
RES ,(IXS) DD CB S  - - - - - - 
RES ,(IYS) FD CB S  - - - - - - 

RES ,A,(IXS) DD CB S  - - - - - - *


RES ,B,(IXS) DD CB S 0 - - - - - - *
RES ,C,(IXS) DD CB S 1 - - - - - - *
RES ,D,(IXS) DD CB S  - - - - - - *
RES ,E,(IXS) DD CB S  - - - - - - *
RES ,H,(IXS) DD CB S  - - - - - - *
RES ,L,(IXS) DD CB S  - - - - - - *
RES ,A,(IYS) FD CB S  - - - - - - *
RES ,B,(IYS) FD CB S 0 - - - - - - *
RES ,C,(IYS) FD CB S 1 - - - - - - *
RES ,D,(IYS) FD CB S  - - - - - - *
RES ,E,(IYS) FD CB S  - - - - - - *
RES ,H,(IYS) FD CB S  - - - - - - *
RES ,L,(IYS) FD CB S  - - - - - - *

RES ,A
CB F
- - - - - -
8
RES ,B
CB 8
- - - - - -
8
RES ,C
CB 
- - - - - -
8
RES ,D
CB A
- - - - - -
8
RES ,E
CB B
- - - - - -
8
RES ,H
CB C
- - - - - -
8
RES ,L
CB D
- - - - - -
8
RES ,(HL)
CB E
- - - - - - 1
RES ,(IXS) DD CB S E - - - - - - 

RES ,(IYS) FD CB S E - - - - - - 

RES ,A,(IXS) DD CB S F - - - - - - *


RES ,B,(IXS) DD CB S 8 - - - - - - *
RES ,C,(IXS) DD CB S  - - - - - - *
RES ,D,(IXS) DD CB S A - - - - - - *
RES ,E,(IXS) DD CB S B - - - - - - *
RES ,H,(IXS) DD CB S C - - - - - - *
RES ,L,(IXS) DD CB S D - - - - - - *
RES ,A,(IYS) FD CB S F - - - - - - *
RES ,B,(IYS) FD CB S 8 - - - - - - *
RES ,C,(IYS) FD CB S  - - - - - - *
RES ,D,(IYS) FD CB S A - - - - - - *
RES ,E,(IYS) FD CB S B - - - - - - *
RES ,H,(IYS) FD CB S C - - - - - - *
RES ,L,(IYS) FD CB S D - - - - - - *

RES ,A
CB A
- - - - - -
8
RES ,B
CB A0
- - - - - -
8
RES ,C
CB A1
- - - - - -
8
RES ,D
CB A
- - - - - -
8
RES ,E
CB A
- - - - - -
8
RES ,H
CB A
- - - - - -
8
RES ,L
CB A
- - - - - -
8
RES ,(HL)
CB A
- - - - - - 1
RES ,(IXS) DD CB S A - - - - - - 
RES ,(IYS) FD CB S A - - - - - - 

RES ,A,(IXS) DD CB S A - - - - - - *


RES ,B,(IXS) DD CB S A0 - - - - - - *
RES ,C,(IXS) DD CB S A1 - - - - - - *
RES ,D,(IXS) DD CB S A - - - - - - *
RES ,E,(IXS) DD CB S A - - - - - - *
RES ,H,(IXS) DD CB S A - - - - - - *
RES ,L,(IXS) DD CB S A - - - - - - *
RES ,A,(IYS) FD CB S A - - - - - - *
RES ,B,(IYS) FD CB S A0 - - - - - - *
RES ,C,(IYS) FD CB S A1 - - - - - - *
RES ,D,(IYS) FD CB S A - - - - - - *
RES ,E,(IYS) FD CB S A - - - - - - *
RES ,H,(IYS) FD CB S A - - - - - - *
RES ,L,(IYS) FD CB S A - - - - - - *

RES ,A
CB AF
- - - - - -
8
RES ,B
CB A8
- - - - - -
8
RES ,C
CB A
- - - - - -
8
RES ,D
CB AA
- - - - - -
8
RES ,E
CB AB
- - - - - -
8
RES ,H
CB AC
- - - - - -
8
RES ,L
CB AD
- - - - - -
8
RES ,(HL)
CB AE
- - - - - - 1
RES ,(IXS) DD CB S AE - - - - - - 
RES ,(IYS) FD CB S AE - - - - - - 

RES ,A,(IXS) DD CB S AF - - - - - - *


RES ,B,(IXS) DD CB S A8 - - - - - - *
RES ,C,(IXS) DD CB S A - - - - - - *
RES ,D,(IXS) DD CB S AA - - - - - - *
RES ,E,(IXS) DD CB S AB - - - - - - *
RES ,H,(IXS) DD CB S AC - - - - - - *

RES ,L,(IXS) DD CB S AD - - - - - - *


RES ,A,(IYS) FD CB S AF - - - - - - *
RES ,B,(IYS) FD CB S A8 - - - - - - *
RES ,C,(IYS) FD CB S A - - - - - - *
RES ,D,(IYS) FD CB S AA - - - - - - *
RES ,E,(IYS) FD CB S AB - - - - - - *
RES ,H,(IYS) FD CB S AC - - - - - - *
RES ,L,(IYS) FD CB S AD - - - - - - *

RES ,A
CB B
- - - - - -
8
RES ,B
CB B0
- - - - - -
8
RES ,C
CB B1
- - - - - -
8
RES ,D
CB B
- - - - - -
8
RES ,E
CB B
- - - - - -
8
RES ,H
CB B
- - - - - -
8
RES ,L
CB B
- - - - - -
8
RES ,(HL)
CB B
- - - - - - 1
RES ,(IXS) DD CB S B - - - - - - 
RES ,(IYS) FD CB S B - - - - - - 

RES ,A,(IXS) DD CB S B - - - - - - *


RES ,B,(IXS) DD CB S B0 - - - - - - *
RES ,C,(IXS) DD CB S B1 - - - - - - *
RES ,D,(IXS) DD CB S B - - - - - - *
RES ,E,(IXS) DD CB S B - - - - - - *
RES ,H,(IXS) DD CB S B - - - - - - *
RES ,L,(IXS) DD CB S B - - - - - - *
RES ,A,(IYS) FD CB S B - - - - - - *
RES ,B,(IYS) FD CB S B0 - - - - - - *
RES ,C,(IYS) FD CB S B1 - - - - - - *
RES ,D,(IYS) FD CB S B - - - - - - *
RES ,E,(IYS) FD CB S B - - - - - - *
RES ,H,(IYS) FD CB S B - - - - - - *
RES ,L,(IYS) FD CB S B - - - - - - *

RES ,A
CB BF
- - - - - -
8
RES ,B
CB B8
- - - - - -
8
RES ,C
CB B
- - - - - -
8
RES ,D
CB BA
- - - - - -
8
RES ,E
CB BB
- - - - - -
8
RES ,H
CB BC
- - - - - -
8
RES ,L
CB BD
- - - - - -
8
RES ,(HL)
CB BE
- - - - - - 1
RES ,(IXS) DD CB S BE - - - - - - 
RES ,(IYS) FD CB S BE - - - - - - 

RES ,A,(IXS) DD CB S BF - - - - - - *


RES ,B,(IXS) DD CB S B8 - - - - - - *
RES ,C,(IXS) DD CB S B - - - - - - *
RES ,D,(IXS) DD CB S BA - - - - - - *
RES ,E,(IXS) DD CB S BB - - - - - - *
RES ,H,(IXS) DD CB S BC - - - - - - *
RES ,L,(IXS) DD CB S BD - - - - - - *
RES ,A,(IYS) FD CB S BF - - - - - - *
RES ,B,(IYS) FD CB S B8 - - - - - - *
RES ,C,(IYS) FD CB S B - - - - - - *
RES ,D,(IYS) FD CB S BA - - - - - - *
RES ,E,(IYS) FD CB S BB - - - - - - *
RES ,H,(IYS) FD CB S BC - - - - - - *
RES ,L,(IYS) FD CB S BD - - - - - - *

8.
BIT - BIT Test

C Z P/V S N H t

BIT 0,A
CB 
- * ? ? 0 1
8
BIT 0,B
CB 0
- * ? ? 0 1
8
BIT 0,C
CB 1
- * ? ? 0 1
8
BIT 0,D
CB 
- * ? ? 0 1
8
BIT 0,E
CB 
- * ? ? 0 1
8
BIT 0,H
CB 
- * ? ? 0 1
8
BIT 0,L
CB 
- * ? ? 0 1
8
BIT 0,(HL)
CB 
- * ? ? 0 1 1
BIT 0,(IXS) DD CB S  - * ? ? 0 1 0
BIT 0,(IYS) FD CB S  - * ? ? 0 1 0

BIT 1,A
CB F
- * ? ? 0 1
8
BIT 1,B
CB 8
- * ? ? 0 1
8
BIT 1,C
CB 
- * ? ? 0 1
8
BIT 1,D
CB A
- * ? ? 0 1
8
BIT 1,E
CB B
- * ? ? 0 1
8
BIT 1,H
CB C
- * ? ? 0 1
8
BIT 1,L
CB D
- * ? ? 0 1
8
BIT 1,(HL)
CB E
- * ? ? 0 1 1
BIT 1,(IXS) DD CB S E - * ? ? 0 1 0
BIT 1,(IYS) FD CB S E - * ? ? 0 1 0

BIT ,A
CB 
- * ? ? 0 1
8
BIT ,B
CB 0
- * ? ? 0 1
8
BIT ,C
CB 1
- * ? ? 0 1
8
BIT ,D
CB 
- * ? ? 0 1
8
BIT ,E
CB 
- * ? ? 0 1
8
BIT ,H
CB 
- * ? ? 0 1
8
BIT ,L
CB 
- * ? ? 0 1
8
BIT ,(HL)
CB 
- * ? ? 0 1 1
BIT ,(IXS) DD CB S  - * ? ? 0 1 0
BIT ,(IYS) FD CB S  - * ? ? 0 1 0

BIT ,A
CB F
- * ? ? 0 1
8
BIT ,B
CB 8
- * ? ? 0 1
8
BIT ,C
CB 
- * ? ? 0 1
8
BIT ,D
CB A
- * ? ? 0 1
8
BIT ,E
CB B
- * ? ? 0 1
8
BIT ,H
CB C
- * ? ? 0 1
8
BIT ,L
CB D
- * ? ? 0 1
8
BIT ,(HL)
CB E
- * ? ? 0 1 1
BIT ,(IXS) DD CB S E - * ? ? 0 1 0
BIT ,(IYS) FD CB S E - * ? ? 0 1 0

BIT ,A
CB 
- * ? ? 0 1
8
BIT ,B
CB 0
- * ? ? 0 1
8
BIT ,C
CB 1
- * ? ? 0 1
8
BIT ,D
CB 
- * ? ? 0 1
8
BIT ,E
CB 
- * ? ? 0 1
8
BIT ,H
CB 
- * ? ? 0 1
8
BIT ,L
CB 
- * ? ? 0 1
8
BIT ,(HL)
CB 
- * ? ? 0 1 1
BIT ,(IXS) DD CB S  - * ? ? 0 1 0

BIT ,(IYS) FD CB S  - * ? ? 0 1 0

BIT ,A
CB F
- * ? ? 0 1
8
BIT ,B
CB 8
- * ? ? 0 1
8
BIT ,C
CB 
- * ? ? 0 1
8
BIT ,D
CB A
- * ? ? 0 1
8
BIT ,E
CB B
- * ? ? 0 1
8
BIT ,H
CB C
- * ? ? 0 1
8
BIT ,L
CB D
- * ? ? 0 1
8
BIT ,(HL)
CB E
- * ? ? 0 1 1
BIT ,(IXS) DD CB S E - * ? ? 0 1 0
BIT ,(IYS) FD CB S E - * ? ? 0 1 0

BIT ,A
CB 
- * ? ? 0 1
8
BIT ,B
CB 0
- * ? ? 0 1
8
BIT ,C
CB 1
- * ? ? 0 1
8
BIT ,D
CB 
- * ? ? 0 1
8
BIT ,E
CB 
- * ? ? 0 1
8
BIT ,H
CB 
- * ? ? 0 1
8
BIT ,L
CB 
- * ? ? 0 1
8
BIT ,(HL)
CB 
- * ? ? 0 1 1
BIT ,(IXS) DD CB S  - * ? ? 0 1 0
BIT ,(IYS) FD CB S  - * ? ? 0 1 0

BIT ,A
CB F
- * ? ? 0 1
8
BIT ,B
CB 8
- * ? ? 0 1
8
BIT ,C
CB 
- * ? ? 0 1
8
BIT ,D
CB A
- * ? ? 0 1
8
BIT ,E
CB B
- * ? ? 0 1
8
BIT ,H
CB C
- * ? ? 0 1
8
BIT ,L
CB D
- * ? ? 0 1
8
BIT ,(HL)
CB E
- * ? ? 0 1 1
BIT ,(IXS) DD CB S E - * ? ? 0 1 0
BIT ,(IYS) FD CB S E - * ? ? 0 1 0

.
LDIR - LoaD, Increment and Repeat
LDDR - LoaD, Decrement and Repeat
LDI - LoaD and Increment
LDD - LoaD and Decrement

C Z P/V S N H t

LDIR
ED B0
- - 0 - 0 01/1
LDDR
ED B8
- - 0 - 0 01/1
LDI
ED A0
- - * - 0 0 1
LDD
ED A8
- - * - 0 0 1

0.
CPIR - ComPare, Increment and Repeat
CPDR - ComPare, Decrement and Repeat
CPI - ComPare and Increment
CPD - Compare and Decrement

C Z P/V S N H t

CPIR
ED B1
- * * * 1 *1/1
CPDR
ED B
- * * * 1 *1/1

CPI
ED A1
- * * * 1 * 1
CPD
ED A
- * * * 1 * 1

1.
IN - INput
INF - INput and set Flags
INIR - INput, Increment and Repeat
INDR - INput, Decrement and Repeat
INI - INput and Increment
IND - INput and Decrement

C Z P/V S N H t

IN A,(N)
DB N
- - - - - - 11
IN A,(C)
ED 8
- * P * 0 * 1
IN B,(C)
ED 0
- * P * 0 * 1
IN C,(C)
ED 8
- * P * 0 * 1
IN D,(C)
ED 0
- * P * 0 * 1
IN E,(C)
ED 8
- * P * 0 * 1
IN H,(C)
ED 0
- * P * 0 * 1
IN L,(C)
ED 8
- * P * 0 * 1
INF
ED 0
- * P * 0 * 1

INIR
ED B
? 1 ? ? 1 ?1/1
INDR
ED BA
? 1 ? ? 1 ?1/1
INI
ED A
? * ? ? 1 ? 1
IND
ED AA
? * ? ? 1 ? 1

.
 T -  Tput
TIR - uTput, Increment and Repeat
TDR - uTput, Decrement and Repeat
 TI -  Tput and Increment
 TD -  Tput and Decrement

C Z P/V S N H t

 T (N),A
D N
- - - - - - 11
 T (C),A
ED 
- - - - - - 1
 T (C),B
ED 1
- - - - - - 1
 T (C),C
ED 
- - - - - - 1
 T (C),D
ED 1
- - - - - - 1
 T (C),E
ED 
- - - - - - 1
 T (C),H
ED 1
- - - - - - 1
 T (C),L
ED 
- - - - - - 1
 T (C),0
ED 1
- - - - - - 1

TIR
ED B
? 1 ? ? 1 ?1/1
TDR
ED BB
? 1 ? ? 1 ?1/1
 TI
ED A
? * ? ? 1 ? 1
 TD
ED AB
? * ? ? 1 ? 1

.
EI - Enable Interrupts
DI - Disable Interrupts
I - Interrupt ode
RETI - RETurn from Interrupt

RETN - RETurn from Non-mascable interrupt

C Z P/V S N H t

EI
FB
- - - - - -

DI
F
- - - - - -

I 0
ED 
- - - - - -
8
I 1
ED 
- - - - - -
8
I 
ED E
- - - - - -
8
RETI
ED D
- - - - - - 1
RETN
ED 
- - - - - - 1

.
NP - No Peration
CPL - ComPLement
NE - NEate
SCF - SET Carry Flag
CCF - Complement Carry Flag
DAA - Decimal Adjust Accumulator

C Z P/V S N H t

NP
00
- - - - - -

CPL
F
- - - - - -

NE
ED 
* * V * 1 *
8
SCF

1 - - - 0 0

CCF
F
* - - - 0 ?

HALT

- - - - - -

DAA

* * P * - *