English
Language : 

MC68HC11G5 Datasheet, PDF (163/195 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Freescale Semiconductor, Inc.
Table 12-9. Branches
Function
Mnemonic REL DIR INDX INDY Comments
Branch if Carry Clea
BCC
X
C=0?
Branch if Carry Set
BCS
X
C=1?
Branch if Equal Zero
BEQ
X
Z=1?
Branch if Greater Than or Equa
BGE
X
Signed ≥
Branch if Greater Than
BGT
X
Signed >
Branch if Higher
BHI
X
Unsigned >
Branch if Higher or Same (same as BCC) BHS
X
Unsigned ≥
Branch if Less Than or Equa
BLE
X
Signed ≤
Branch if Lower (same as BCS)
BLO
X
Unsigned <
Branch if Lower or Same
BLS
X
Unsigned ≤
Branch if Less Than
BLT
X
Signed <
Branch if Minus
BMI
X
N=1?
Branch if Not Equal
BNE
X
Z=0?
Branch if Plus
BPL
X
N=0?
Branch if Bit(s) Clear in Memory Byte
BRCLR
X
X
X Bit Manipulation
Branch Never
BRN
X
3-cycle NOP
Branch if Bit(s) Set in Memory Byte
BRSET
X
X
X Bit Manipulation
Branch if Overflow Clear
BVC
X
V=0?
Branch if Overflow Set
BVS
X
V=1?
The limited range of branches (-128/+127 locations) is more than adequate for most (but not all)
situations. In cases where this range is too short, a jump instruction must be used. For every branch
there is a branch for the opposite condition so it is a simple matter to replace a branch which has
an out-of-range destination with a sequence consisting of the opposite branch around a jump to the
out-of-range destination. For example, if a program contained the instruction...
BHI
TINBUK2 Unsigned >
where TINBUK2 was out of the -128/+127 location range, the following instruction sequence could
be substituted...
BLS AROUND
Unsigned ≤
JMP TINBUK2
Still go to TINBUK2 if >
AROUND EQU *
CPU, ADDRESSING MODES AND INSTRUCTION SET
For More Information On This Product,
Go to: www.freescale.com
12-13