Bcc (Branch conditionally)
Bcc
<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.
BT, BF, BHS, and BLO are synonyms for BRA, BRN, BCC, and BCS, respectively.
Mnemonic
cc Field
Description
Condition
Meaning
BRA (BT)
0 0 0 0
Always (True)
Always true
BRN (BF)
0 0 0 1
Never (False)
Never
BHI
0 0 1 0
HIgh
C
∨
Z = 0
X > Y (Unsigned)
BLS
0 0 1 1
Low or Same
C
∨
Z = 1
X
≤
Y (Unsigned)
BCC (BHS)
0 1 0 0
Carry Clear
C = 0
X
≥
Y (Unsigned)
(High or Same)
BCS (BLO)
0 1 0 1
Carry Set (LOw)
C = 1
X < Y (Unsigned)
BNE
0 1 1 0
Not Equal
Z = 0
X
≠
Y (Signed or
unsigned)
BEQ
0 1 1 1
EQual
Z = 1
X = Y (Signed or
unsigned)
BVC
1 0 0 0
oVerflow Clear
V = 0
BVS
1 0 0 1
oVerflow Set
V = 1
BPL
1 0 1 0
PLus
N = 0
BMI
1 0 1 1
MInus
N = 1
BGE
1 1 0 0
Greater or Equal
N
⊕
V = 0
X
≥
Y (Signed)
BLT
1 1 0 1
Less Than
N
⊕
V = 1
X < Y (Signed)
BGT
1 1 1 0
Greater Than
Z
∨
(N
⊕
V) = 0
X > Y (Signed)
BLE
1 1 1 1
Less or Equal
Z
∨
(N
⊕
V) = 1
X
≤
Y (Signed)
45
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...