Texas Instruments TMS320C28x Reference Manual page 218

Dsp cpu and instruction set
Table of Contents

Advertisement

BF 16bitOffset,COND
SYNTAX OPTIONS
BF 16bitOffset,COND
Operands
16bit-
Offset
COND
Description
Flags and
V
Modes
Repeat
0101 0110 1100 COND
CCCC CCCC CCCC CCCC
16-bit signed immediate constant offset value (−32768 to +32767 range)
Conditional codes:
COND
Syntax
0000
NEQ
Not Equal To
0001
EQ
Equal To
0010
GT
Greater Then
0011
GEQ
Greater Then Or Equal To
0100
LT
Less Then
0101
LEQ
Less Then Or Equal To
0110
HI
Higher
0111
HIS, C
Higher Or Same, Carry Set
1000
LO, NC
Lower, Carry Clear
1001
LOS
Lower Or Same
1010
NOV
No Overflow
1011
OV
Overflow
1100
NTC
Test Bit Not Set
1101
TC
Test Bit Set
1110
NBIO
BIO Input Equal To Zero
1111
UNC
Unconditional
Fast conditional branch. If the specified condition is true, then branch by
adding the signed 16-bit constant value to the current PC value; otherwise
continue execution without branching:
If (COND = true) PC = PC + signed 16-bit offset;
If (COND = false) PC = PC + 2;
Note: The branch fast (BF) instruction takes advantage of dual prefetch queue on the
C28x core that reduces the cycles for a taken branch from 7 to 4:
If (COND = true) then the instruction takes 4 cycles.
If (COND = false) then the instruction takes 4 cycles.
If the V flag is tested by the condition, then V is cleared.
This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
OPCODE
OBJMODE
Description
BF 16bitOffset,COND
Branch Fast
RPT
CYC
1
4/4
Flags Tested
Z = 0
Z = 1
Z = 0 AND N = 0
N = 0
N = 1
Z = 1 OR N = 1
C = 1 AND Z = 0
C = 1
C = 0
C = 0 OR Z = 1
V = 0
V = 1
TC = 0
TC = 1
BIO = 0
6-61

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C28x and is the answer not in the manual?

Table of Contents

Save PDF