Texas Instruments TMS320C28x Reference Manual page 473

Dsp cpu and instruction set
Table of Contents

Advertisement

SB 8bitOffset,COND
SB 8bitOffset,COND
SYNTAX OPTIONS
SB 8bitOffset,COND
Operands
8bitOffset
COND
Description
Flags and
V
Modes
Modes
Repeat
6-316
0110 COND CCCC CCCC
8-bit signed immediate constant offset value (−128 to
+127 range)
Conditional codes:
COND
Syntax Description
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
Short conditional branch. If the specified condition is true, then branch
by adding the signed 8-bit constant value to the current PC value;
otherwise continue execution without branching:
If (COND = true) PC = PC + signed 8-bit offset;
If (COND = false) PC = PC + 1;
Note:
If (COND = true) then the instruction takes 7 cycles.
If (COND = false) then the instruction takes 4 cycles.
If (COND = UNC) 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
RPT
CYC
X
7/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

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?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF