MB90580B Series
117
Table 20 Branch 2 Instructions [19 Instructions]
*1: 5 when branching, 4 when not branching
*2: 13 when branching, 12 when not branching
*3: 7 + (a) when branching, 6 + (a) when not branching
*4: 8 when branching, 7 when not branching
*5: 7 when branching, 6 when not branching
*6: 8 + (a) when branching, 7 + (a) when not branching
*7: Set to 3
×
(b) + 2
×
(c) when an interrupt request occurs, and 6
×
(c) for return.
*8: Retrieve (word) from stack
*9: Retrieve (long word) from stack
*10: In the CBNE/CWBNE instruction, do not use the RWj+ addressing mode.
Note : For an explanation of “(a)” to “(d)”, refer to Table 4, “Number of Execution Cycles for Each Type of Addressing,”
and Table 5, “Correction Values for Number of Cycles Used to Calculate Number of Actual Cycles.”
Mnemonic
#
~
RG
B
Operation
LH
AH
I
S
T
N
Z
V
C
RMW
CBNE
CWBNEA, #imm16, rel
A, #imm8, rel
CBNE
CBNE
CWBNEear, #imm16, rel
CWBNE eam, #imm16, rel*
10
ear, #imm8, rel
eam, #imm8, rel*
10
DBNZ
ear, rel
DBNZ
eam, rel
DWBNZ ear, rel
DWBNZ eam, rel
INT
INT
INTP
INT9
RETI
#vct8
addr16
addr24
LINK
#imm8
UNLINK
RET *
8
RETP *
9
3
4
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
15
6
5
4
6
0
0
1
0
1
0
2
2
2
2
0
0
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, and (ear)
≠
0
Branch when byte (eam) =
(eam) – 1, and (eam)
≠
0
Branch when word (ear) =
(ear) – 1, and (ear)
≠
0
Branch when word (eam) =
(eam) – 1, and (eam)
≠
0
Software interrupt
Software interrupt
Software interrupt
Software interrupt
Return from interrupt
At constant entry, save old
frame pointer to stack, set
new frame pointer, and
allocate local pointer area
At constant entry, retrieve old
frame pointer from stack.
Return from subroutine
Return from subroutine
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
R
R
R
R
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
S
S
S
S
*
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
*
–
–
–
–
*
*
*
*
*
*
*
*
*
*
–
–
–
–
*
–
–
–
–
*
*
*
*
*
*
*
*
*
*
–
–
–
–
*
–
–
–
–
*
*
*
*
*
*
*
*
*
*
–
–
–
–
*
–
–
–
–
*
*
*
*
*
*
–
–
–
–
–
–
–
–
*
–
–
–
–
–
–
–
–
–
–
–
*
–
*
–
–
–
–
–
–
–
–
–