C28X And C2Xlp Flags - Texas Instruments TMS320C28x Reference Manual

Dsp cpu and instruction set
Table of Contents

Advertisement

Condition Tests on Flags
E.1 Condition Tests on Flags
Table E−1. C28x and C2xLP Flags
On the C28x, all EQ/NEQ/GT/LT/LEQ conditional tests are performed on the
state of the Z and N flags. On the C2xLP, the same condition tests are per-
formed on the contents of the ACC register.
Designation
NEQ
EQ
GT
GEQ
LT
LEQ
HI
HIS, C
LO, NC
LOS
NOV
OV
NTC
TC
NBIO
UNC
On the C28x, the Z and N flags are set on all ACC operations. That includes
ACC loads. Therefore, the Z and N flags reflect the current state of the ACC
immediately after an operation on the ACC.
C28x Modes
!= 0
== 0
> 0
>= 0
< 0
<= 0
higher
higher or same, carry set
lower, carry clear
lower or same
no overflow
overflow
TC == 0
TC == 1
test BIO input == 0
unconditional
C2xLP Equivalent
ACC != 0
ACC == 0
ACC > 0
ACC >= 0
ACC < 0
ACC <= 0
C == 1
C == 0
OV == 0
OV == 1
TC == 0
TC == 1
BIO == 0
UNC

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