Z08617 NMOS Z8
®
8-B
IT
MCU
K
EYBOARD
C
ONTROLLER
22
INSTRUCTION SUMMARY
(Continued)
Address
Flags
Instruction
Mode
Opcode
Affected
and Operation
dst src
Byte (Hex) C Z S V D H
ADC
dst, src
†
1[
]
✻ ✻ ✻ ✻
0
✻
dst
←
dst + src + C
ADD
dst, src
†
0[
]
✻ ✻ ✻ ✻
0
✻
dst
←
dst + src
AND
dst, src
†
5[
]
✻ ✻
0
–
–
dst
←
dst AND src
CALL
dst
DA
D6
–
–
–
–
–
–
SP
←
SP – 2
IRR
D4
@SP
←
PC,
PC
←
dst
CCF
EF
✻
–
–
–
–
–
C
←
NOT C
CLR
dst
R
B0
–
–
–
–
–
–
dst
←
0
IR
B1
COM
dst
R
6 0
–
✻ ✻
0
–
–
dst
←
NOT dst
IR
6 1
CP
dst, src
†
A[
]
✻ ✻ ✻ ✻
–
–
dst –
src
DA
dst
R
4 0
✻ ✻ ✻
X –
–
dst
←
DA dst
IR
4 1
DEC
dst
R
0 0
–
✻ ✻ ✻
–
–
dst
←
dst – 1
IR
0 1
DECW
dst
RR
8 0
–
✻ ✻ ✻
–
–
dst
←
dst – 1
IR
8 1
DI
8 F
–
–
–
–
–
–
IMR(7)
←
0
DJNZ
r, dst
RA
r A
–
–
–
–
–
–
r
←
r – 1
r = 0 – F
if r
≠
0
PC
←
PC + dst
Range: +127,–128
EI
9 F
–
–
–
–
–
–
IMR(7)
←
1
Address
Flags
Instruction
Mode
Opcode
Affected
and Operation
dst src
Byte (Hex) C Z S V D H
INC
dst
r
rE
–
✻ ✻ ✻
–
–
dst
←
dst + 1
r = 0 – F
R
2 0
IR
2 1
INCW
dst
RR
A 0
–
✻ ✻ ✻
–
–
dst
←
dst + 1
IR
A 1
IRET
BF
✻ ✻ ✻ ✻ ✻ ✻
FLAGS
←
@SP;
SP
←
SP + 1
PC
←
@SP;
SP
←
SP + 2;
IMR(7)
←
1
JP
cc, dst
DA
CD
–
–
–
–
–
–
if cc is true
C = 0 – F
PC
←
dst
IRR
3 0
JR
cc, dst
RA
CB
–
–
–
–
–
–
if cc is true,
C = 0 – F
PC
←
PC + dst
Range: +127,–128
LD
dst, src
r
Im
rC
–
–
–
–
–
–
dst
←
src
r
R
r 8
R
r
r 9
r = 0 – F
r
X
C7
X
r
D7
r
Ir
E3
Ir
r
F 3
R
R
E4
R
IR
E5
R
IM
E6
IR
IM
E7
IR
R
F 5
LDC
dst, src
r
Irr
C2
–
–
–
–
–
–
LDCI
dst, src
Ir
Irr
C3
–
–
–
–
–
–
dst
←
src
r
←
r + 1;
rr
←
rr + 1