Renesas H8/300 Series Programming Manual page 51

Table of Contents

Advertisement

Bcc (Branch conditionally)
<Description>
If the specified condition is false, this instruction does nothing; the next instruction is
executed. If the specified condition is true, a signed displacement is added to the address of
the next instruction and execution branches to the resulting address.
The displacement is a signed 8-bit value which must be even. The branch destination address
can be located in the range –126 to +128 bytes from the address of the Bcc instruction.
The available conditions and their mnemonics are given below.
Mnemonic
BRA (BT)
BRN (BF)
BHI
BLS
BCC (BHS)
BCS (BLO)
BNE
BEQ
BVC
BVS
BPL
BMI
BGE
BLT
BGT
BLE
BT, BF, BHS, and BLO are synonyms for BRA, BRN, BCC, and BCS, respectively.
cc Field
Description
0 0 0 0
Always (True)
0 0 0 1
Never (False)
0 0 1 0
HIgh
0 0 1 1
Low or Same
0 1 0 0
Carry Clear
(High or Same)
0 1 0 1
Carry Set (LOw)
0 1 1 0
Not Equal
0 1 1 1
EQual
1 0 0 0
oVerflow Clear
1 0 0 1
oVerflow Set
1 0 1 0
PLus
1 0 1 1
MInus
1 1 0 0
Greater or Equal
1 1 0 1
Less Than
1 1 1 0
Greater Than
1 1 1 1
Less or Equal
Condition
Always true
Never
C ∨ Z = 0
C ∨ Z = 1
C = 0
C = 1
Z = 0
Z = 1
V = 0
V = 1
N = 0
N = 1
N
V = 0
N
V = 1
Z ∨ (N
V) = 0
Z ∨ (N
V) = 1
45
Bcc
Meaning
X > Y (Unsigned)
X ≤ Y (Unsigned)
X ≥ Y (Unsigned)
X < Y (Unsigned)
X ≠ Y (Signed or
unsigned)
X = Y (Signed or
unsigned)
X ≥ Y (Signed)
X < Y (Signed)
X > Y (Signed)
X ≤ Y (Signed)

Advertisement

Table of Contents
loading

Table of Contents