![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_543.png)
MB90560 series
APPENDIX B INSTRUCTIONS
519
Table B.8-13 Branch instructions (2): 19 instructions
*1 5 when branching occurs, 4 otherwise
*2 13 when branching occurs, 12 otherwise
*3 7 + (a) when branching occurs, 6 + (a) otherwise
*4 8 when branching occurs, 7 otherwise
*5 7 when branching occurs, 6 otherwise
*6 8 + (a) when branching occurs, 7 + (a) otherwise
*7 Returns from stack (word)
*8 Returns from stack (long-word)
*9 Do not use the RWj + addressing mode for a CBNE/CWBNE instruction.
<Caution>
See Table B.5-1, "Number of execution cycles for each type of addressing," and Table B.5-2,
"Compensation values for calculating the number of execution cycles," for (a) to (d) in the
above table.
Mnemonic
A,#imm8,rel
CWBNE
A,#imm16,rel
#
3
4
~
RG
0
0
B
0
0
Operation
LH AH
-
-
I
-
-
S
-
-
T
-
-
N
Z
V
C
RMW
-
-
CBNE
CBNE
CBNE
CWBNE
CWBNE
ear,#imm8,rel
eam,#imm8,rel
ear,#imm16,rel
eam,#imm16,rel
DBNZ
DBNZ
ear,rel
eam,rel
DWBNZ
DWBNZ
ear,rel
eam,rel
INT
INT
INTP
INT9
RETI
#vct8
addr16
addr24
LINK
#imm8
UNLINK
RET
RETP
*1
*2
4
4+
5
5+
3
3+
3
3+
2
3
4
1
1
2
1
1
1
*1
*1
*2
*3
*4
*3
*5
*6
*5
*6
20
16
17
20
11
6
5
4
6
1
0
1
0
2
2
2
2
0
0
0
0
0
0
0
0
0
0
(b)
0
(c)
0
2×(b)
0
2×(c)
8×(c)
6×(c)
6×(c)
8×(c)
*7
(c)
(c)
(c)
(d)
Branch when byte (A)
≠
imm8
Branch when word (A)
≠
imm16
Branch when byte (ear)
≠
imm8
Branch when byte (eam)
≠
imm8
Branch when word (ear)
≠
imm16
Branch when word (eam)
≠
imm16
Branch when byte (ear)=(ear)-1, (ear)
≠
0
Branch when byte (eam)=(eam)-1, (eam)
≠
0
Branch when word (ear)=(ear)-1, (ear)
≠
0
Branch when word (eam)=(eam)-1, (eam)
≠
0
Software interrupt
Software interrupt
Software interrupt
Software interrupt
Recovery from interrupt
At the entrance of function, save old frame
pointers into a stack, set up new frame point-
ers, reserve area for local pointers.
At the exit of function, recover the old frame
pointers from the stack.
Recover from the subroutine.
Recover from the subroutine.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
R
R
R
R
-
-
-
-
-
-
-
-
-
-
-
-
S
S
S
S
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-