Bcc:d (Branch Relative If Condition Satisfied) - Fujitsu FR Family Instruction Manual

32-bit microcontroller
Hide thumbs Also See for FR Family:
Table of Contents

Advertisement

7.99

Bcc:D (Branch Relative if Condition Satisfied)

This is a branching instruction with a delay slot.
If the conditions established for each particular instruction are satisfied, branch to the
address indicated by "label9" relative to the value of the program counter (PC). When
calculating the address, double the value of "rel8" as a signed extension.
If conditions are not satisfied, no branching can occur.
Conditions for each instruction are listed in Table 7.99-1.
■ Bcc:D (Branch Relative if Condition Satisfied)
Assembler format:
BRA : D
BNO : D
BEQ : D
BNE : D
BC : D
BNC : D
BN : D
BP : D
Operation:
if (conditions satisfied) {
}
Table 7.99-1 Branching Conditions
Flag change:
N, Z, V, and C: Unchanged
label9
BV : D
label9
BNV : D
label9
BLT : D
label9
BGE : D
label9
BLE : D
label9
BGT : D
label9
BLS : D
label9
BHI : D
PC + 2 + exts (rel8 × 2) → PC
Mnemonic
cc
BRA : D
0000
B
BNO : D
0001
B
BEQ : D
0010
B
BNE : D
0011
B
BC : D
0100
B
BNC : D
0101
B
BN : D
0110
B
BP : D
0111
B
N
Z
V
C
CHAPTER 7 DETAILED EXECUTION INSTRUCTIONS
label9
label9
label9
label9
label9
label9
label9
label9
Conditions
Mnemonic
Always satisfied
BV : D
Always unsatisfied
BNV : D
Z = 1
BLT : D
Z = 0
BGE : D
C = 1
BLE : D
C = 0
BGT : D
N = 1
BLS : D
N = 0
BHI : D
cc
Conditions
1000
V = 1
B
1001
V = 0
B
1010
V xor N = 1
B
1011
V xor N = 0
B
1100
(V xor N) or Z = 1
B
1101
(V xor N) or Z = 0
B
1110
C or Z = 1
B
1111
C or Z = 0
B
203

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr series

Table of Contents