52
CHAPTER 4 INSTRUCTION SET
Conditional
BC
$addr16
2
12
–
PC
←
PC+2+jdisp8 if CY=1
Branch
BNC
$addr16
2
12
–
PC
←
PC+2+jdisp8 if CY=0
BZ
$addr16
2
12
–
PC
←
PC+2+jdisp8 if Z=1
BNZ
$addr16
2
12
–
PC
←
PC+2+jdisp8 if Z=0
BT
saddr.bit,$addr16
3
16
18
PC
←
PC+3+jdisp8 if (saddr.bit)=1
sfr.bit,$addr16
4
–
22
PC
←
PC+4+jdisp8 if sfr.bit=1
A.bit,$addr16
3
16
–
PC
←
PC+3+jdisp8 if A.bit=1
PSW.bit,$addr16
3
–
18
PC
←
PC+3+jdisp8 if PSW.bit=1
[HL].bit,$addr16
3
20
22+2n
PC
←
PC+3+jdisp8 if (HL).bit=1
BF
saddr.bit,$addr16
4
20
22
PC
←
PC+4+jdisp8 if (saddr.bit)=0
sfr.bit,$addr16
4
–
22
PC
←
PC+4+jdisp8 if sfr.bit=0
A.bit,$addr16
3
16
–
PC
←
PC+3+jdisp8 if A.bit=0
PSW.bit,$addr16
4
–
22
PC
←
PC+4+jdisp8 if PSW.bit=0
[HL].bit,$addr16
3
20
22+2n
PC
←
PC+3+jdisp8 if (HL).bit=0
BTCLR
saddr.bit,$addr16
4
20
24
PC
←
PC+4+jdisp8 if (saddr.bit)=1
then reset (saddr.bit)
sfr.bit,$addr16
4
–
24
PC
←
PC+4+jdisp8 if sfr.bit=1
then reset sfr.bit
A.bit,$addr16
3
16
–
PC
←
PC+3+jdisp8 if A.bit=1
then reset A.bit
PSW.bit,$addr16
4
–
24
PC
←
PC+4+jdisp8 if PSW.bit=1
then reset PSW.bit
×
×
×
[HL].bit,$addr16
3
20
24+2n+2m
PC
←
PC+3+jdisp8 if (HL).bit=1
then reset (HL).bit
DBNZ
B,$addr16
2
12
–
B
←
B–1, then PC
←
PC+2+jdisp8 if B
≠
0
C,$addr16
2
12
–
C
←
C–1, then PC
←
PC+2+jdisp8 if C
≠
0
saddr,$addr16
3
16
20
(saddr)
←
(saddr)–1, then
PC
←
PC+3+jdisp8 if (saddr)
≠
0
CPU
SEL
RBn
2
8
–
RBS1,0
←
n
Control
NOP
1
4
–
No Operation
EI
2
–
12
IE
←
1 (Enable Interrupt)
DI
2
–
12
IE
←
0 (Disable Interrupt)
HALT
2
12
–
Set HALT Mode
STOP
2
12
–
Set STOP Mode
Notes 1.
When the internal high-speed RAM area is accessed or in the instruction with no data access.
When an area except the internal high-speed RAM area is accessed.
2.
Remarks 1.
1 instruction clock cycle is 1 CPU clock cycle (f
CPU
) selected by the processor clock control register
(PCC).
Number of clock cycles is when there is a program in the internal ROM area.
n indicates the number of waits when the external memory expansion area is read.
m indicates the number of waits when the external memory expansion area is written to.
2.
3.
4.
Instruction
Group
Clock
Flag
Mnemonic
Operands
Byte
Operation
Note 1
Note 2
Z AC CY