23
Z08617 NMOS Z8
®
8-B
IT
MCU
K
EYBOARD
C
ONTROLLER
Address
Opcode
Flags
Instruction
Mode
Byte
Affected
and Operation
dst src
(Hex)
C Z S V D H
SUB
dst, src
†
2[ ]
[
[
[
[
1
[
dst
←
dst – src
SWAP
dst
R
F 0
X
✻ ✻
X –
–
IR
F 1
TCM
dst, src
†
6[
]
–
✻ ✻
0
–
–
(NOT dst)
AND src
TM
dst, src
†
7[
]
–
✻ ✻
0
–
–
dst AND src
WDT
5 F
–
X X X –
–
XOR
dst, src
†
B[
]
–
✻ ✻
0
–
–
dst
←
dst XOR src
INSTRUCTION SUMMARY
(Continued)
Address
Opcode
Flags
Instruction
Mode
Byte
Affected
and Operation
dst src
(Hex)
C Z S V D H
NOP
FF
–
–
–
–
–
–
OR
dst, src
†
4[ ]
–
✻ ✻
0
–
–
dst
←
dst OR src
POP
dst
R
5 0
–
–
–
–
–
–
dst
←
@SP;
IR
5 1
SP
←
SP + 1
PUSH
src
R
7 0
–
–
–
–
–
–
SP
←
SP – 1;
IR
7 1
@SP
←
src
RCF
CF
0
–
–
–
–
–
C
←
0
RET
AF
–
–
–
–
–
–
PC
←
@SP;
SP
←
SP + 2
RL
dst
R
9 0
✻ ✻ ✻ ✻
–
–
IR
9 1
RLC
dst
R
1 0
✻ ✻ ✻ ✻
–
–
IR
1 1
RR
dst
R
E0
✻ ✻ ✻ ✻
–
–
IR
E1
RRC
dst
R
C0
✻ ✻ ✻ ✻
–
–
IR
C1
SBC
dst, src
†
3[ ]
✻ ✻ ✻ ✻
1
✻
dst
←
dst
—
src – C
SCF
DF
1
–
–
–
–
–
C
←
1
SRA
dst
R
D0
✻ ✻ ✻
0
–
–
IR
D1
SRP
src
Im
3 1
–
–
–
–
–
–
RP
←
src
C
7
0
C
7
0
C
7
0
C
7
0
C
7
0
†
These instructions have an identical set of addressing modes,
which are encoded for brevity. The first opcode nibble is found in
the instruction set table above. The second nibble is expressed
symbolically by a ‘[
]’ in this table, and its value is found in the
following table to the left of the applicable addressing mode pair.
For example, the opcode of an ADC instruction using the addressing
modes r (destination) and Ir (source) is 13.
Address Mode
Lower
dst
src
Opcode Nibble
r
r
[ 2 ]
r
Ir
[ 3 ]
R
R
[ 4 ]
R
IR
[ 5 ]
R
IM
[ 6 ]
IR
IM
[ 7 ]
7
4
3
0