Table B.2.1N Branch 2 Instructions (19 Instructions) - Fujitsu F2MC-16LX MB90580 Series Hardware Manual

16-bit microcontrollers
Hide thumbs Also See for F2MC-16LX MB90580 Series:
Table of Contents

Advertisement

B.2 Instruction Set
Mnemonic
#
CBNE
A,#imm8,rel
3
CWBNE A,#imm16,rel
4
CBNE
ear,#imm8,rel
4
CBNE
eam,#imm8,rel
4+
CWBNE ear,#imm16,rel
5
CWBNE eam,#imm16,rel
5+
DBNZ
ear,rel
3
DBNZ
eam,rel
3+
DWBNZ ear,rel
3
DWBNZ eam,rel
3+
INT
#vct8
2
INT
addr16
3
INTP
addr24
4
INT9
1
RETI
1
LINK
#imm8
2
UNLINK
1
RET
*1
1
RETP
*2
1
*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:
3 × (b) + 2 × (c) when an interrupt request is generated, 6 × (c) at recovery.
Note 1: Return from stack (word)
Note 2: Return from stack (long)
Note 3: RWj+ addressing mode should not be used with the CBNE/CWBNE instructions.
Note: For an explanation of "(a)" to "(d)" in the colunm "B", see Table B.2d and Table B.2e.
330
APPENDIX B: Instructions

Table B.2.1n Branch 2 Instructions (19 Instructions)

~
RG
B
Branch when byte (A) ≠ imm8
*1
0
0
*1
0
0
Branch when word (A)≠ imm16
*2
1
0
Branch when byte (ear)≠ imm8
*3
0
(b)
Branch when byte (eam)≠ imm8
*4
1
0
Branch when word (ear)≠ imm16
*3
0
(c)
Branch when word (eam)≠ imm16
*5
2
0
Branch when byte (ear)=(ear)-1, (ear)≠ 0
*6
2
2×(b)
Branch when byte (eam)=(eam)-1, (eam)≠ 0
*5
2
0
Branch when word (ear)=(ear)-1, (ear)≠ 0
*6
2
2×(c)
Branch when word (eam)=(eam)-1, (eam)≠ 0
20
0
8×(c)
Software interrupt
16
0
6×(c)
Software interrupt
17
0
6×(c)
Software interrupt
20
0
8×(c)
Software interrupt
11
0
*7
Recovery from interrupt
6
0
(c)
At the entrance of function, save old frame
pointers into a stack, set up new frame point-
ers, reserve area for local pointers.
5
0
(c)
At the exit of function, recover the old frame
pointers from the stack.
4
0
(c)
Recover from the subroutine.
6
0
(d)
Recover from the subroutine.
Operation
LH AH
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
I
S
T
N
Z
V
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
R
S
-
-
-
-
-
R
S
-
-
-
-
-
R
S
-
-
-
-
-
R
S
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
MB90580 Series
C
RMW
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lx mb90v580F2mc-16lx mb90583F2mc-16lx mb90f583

Table of Contents