![](http://datasheet.mmic.net.cn/360000/Z80B-CTC_datasheet_16678678/Z80B-CTC_149.png)
Z8 Microcontrollers
Instruction Set
ZiLOG
UM001600-Z8X0599
12-9
Instruction
and
Operation
POP
dst
dst
←
@SP
and SP
←
SP
+ 1
PUSH
src
SP
←
SP – 1
and @SP
←
src
RCF
C
←
0
RET
PC
←
@SP;
SP
←
SP + 2
RL
dst
Address
Mode
Op Code
Byte
Flags
Affected
dst
R
IR
src
(Hex)
50
51
C Z S V D H
– – – – – –
R
IR
70
71
– – – – – –
C F
0 – – – – –
A F
– – – – – –
R
IR
90
91
6 6 6 6
– –
RLC
dst
R
IR
10
11
6 6 6 6
– –
RR
dst
R
IR
E 0
E 1
6 6 6 6
– –
RRC
dst
R
IR
C 0
C 1
6 6 6 6
– –
SBC
dst, src
dst
←
dst – src
– C
SCF
C
←
1
SRA
dst
3[ ]
6 6 6 6
1
6
D F
1 – – – – –
R
IR
D 0
D 1
6 6 6
0 – –
SRP
dst
RP
←
src
Im
31
– – – – – –
STOP
6 F
– – – – – –
SUB
dst, src
dst
←
dst – src
SWAP
dst
2[ ]
6 6 6 6
1
6
R
IR
F0
F1
X
6 6
X – –
C
7
0
C
7
0
C
7
0
C
7
0
C
7
0
7
4 3
0
Instruction
and
Operation
TCM
dst, src
(NOT dst) AND
src
TM
dst, src
dst AND src
WDH
WDT
XOR
dst, src
dst AND src
XOR src
Address
Mode
Opcode
Byte
Flags
Affected
dst
src
(Hex)
6[ ]
C Z S V D H
–
6 6
0 – –
7[ ]
–
6 6
0 – –
4 F
5 F
7[ ]
– X X X – –
– X X X – –
–
6 6
0 – –
Note:
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 ex-
pressed 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 ad-
dressing modes r (destination) and Ir (source) is 13.
Address
Mode
Lower
Op Code
Nibble
[2]
[3]
[4]
[5]
[6]
[7]
dst
r
r
R
R
R
IR
src
r
Ir
R
IR
IM
IM