Operators Used In Expressions (Precedence) - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

3.9.1
Operators
Table 3–1. Operators Used in Expressions (Precedence)
3.9.2
Expression Overflow and Underflow
Table 3–1 lists the operators that can be used in expressions.
Note: Differences in Precedence From Other TMS320 Assemblers
Some other TMS320 processors use a different order of precedence than
the TMS320C54x, and occasionally different results may be produced from
the same source code for this reason. The 'C54x uses the same order of pre-
cedence as the C language.
Symbols
+
~
*
/
%
+
<<
>>
<
<=
>
>=
!=, =[=]
&
^
|
Note:
Unary +, –, and * have higher precedence than the binary forms.
The assembler checks for overflow and underflow conditions when arithmetic
operations are performed at assembly time. It issues a Value Truncated warn-
ing whenever an overflow or underflow occurs. The assembler does not check
for overflow or underflow in multiplication.
Operators
Unary plus, minus, 1s complement
Multiplication, division, modulo
Addition, subtraction
Left shift, right shift
Less than, LT or equal, greater than,
GT or equal
Not equal to, equal to
Bitwise AND
Bitwise exclusive OR
Bitwise OR
Assembler Description
Expressions
Evaluation
Right to left
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
3-25

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents