Expressions
3-25
Assembler Description
3.9.1
Operators
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.
Table 3–1. Operators Used in Expressions (Precedence)
Symbols
Operators
Evaluation
+ – ~
Unary plus, minus, 1s complement
Right to left
* / %
Multiplication, division, modulo
Left to right
+ –
Addition, subtraction
Left to right
<< >>
Left shift, right shift
Left to right
< <= > >=
Less than, LT or equal, greater than,
GT or equal
Left to right
!=, =[=]
Not equal to, equal to
Left to right
&
Bitwise AND
Left to right
^
Bitwise exclusive OR
Left to right
|
Bitwise OR
Left to right
Note:
Unary +, –, and * have higher precedence than the binary forms.
3.9.2
Expression Overflow and Underflow
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.
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......