397
■
Branch Instructions
58
CMP @EP, #d8
4
2
( (EP) )-d8
-
-
-
+
+
+
+
97
59
CMP @IX+off, #d8
5
3
( (IX)+off)-d8
-
-
-
+
+
+
+
96
60
CMP Ri, #d8
4
2
(Ri)-d8
-
-
-
+
+
+
+
98 to 9F
61
INCW SP
3
1
(SP)
←
(SP)+1
-
-
-
-
-
-
-
C1
62
DECW SP
3
1
(SP)
←
(SP)-1
-
-
-
-
-
-
-
D1
Table B.4-2 List of Operation Instructions (4 / 4)
No.
MNEMONIC
~
#
Operation
TL
TH
AH
N
Z
V
C
OP CODE
Table B.4-3 List of Branch Instructions
No.
MNEMONIC
~
#
Operation
TL
TH
AH
N
Z
V
C
OP CODE
1
BZ/BEQ rel
3
2
if Z=1 then PC
←
PC+rel
-
-
-
-
-
-
-
FD
2
BNZ/BNE rel
3
2
if Z=0 then PC
←
PC+rel
-
-
-
-
-
-
-
FC
3
BC/BLO rel
3
2
if C=1 then PC
←
PC+rel
-
-
-
-
-
-
-
F9
4
BNC/BHS rel
3
2
if C=0 then PC
←
PC+rel
-
-
-
-
-
-
-
F8
5
BN rel
3
2
if N=1 then PC
←
PC+rel
-
-
-
-
-
-
-
FB
6
BP rel
3
2
if N=0 then PC
←
PC+rel
-
-
-
-
-
-
-
FA
7
BLT rel
3
2
-
-
-
-
-
-
-
FF
8
BGE rel
3
2
-
-
-
-
-
-
-
FE
9
BBC dir:b, rel
5
3
if(dir:b)=0 then PC
←
PC+rel
-
-
-
-
+
-
-
B0 to B7
10
BBS dir:b, rel
5
3
if(dir:b)=1 then PC
←
PC+rel
-
-
-
-
+
-
-
B8 to BF
11
JMP @A
2
1
(PC)
←
(A)
-
-
-
-
-
-
-
E0
12
JMP ext
3
3
(PC)
←
ext
-
-
-
-
-
-
-
21
13
CALLV #vct
6
1
vector call
-
-
-
-
-
-
-
E8 to EF
14
CALL ext
6
3
subroutine call
-
-
-
-
-
-
-
31
15
XCHW A, PC
3
1
(PC)
←
(A), (A)
←
(PC)+1
-
-
dH
-
-
-
-
F4
16
RET
4
1
return from subroutine
-
-
-
-
-
-
-
20
17
RETI
6
1
return from interrupt
-
-
-
restore
30
if N=1 then PC PC+rel
if N=0 then PC PC+rel
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......