Section 3: Assembler
149
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual Not for Distribution
Beta Version February 2, 2001
3.3.7.2. Operators
All the arithmetic and bitwise operators found in the C language are supported.
They are shown in Table 3.8.
Operator Description
Unary
~ One’s complement
−
Unary minus
Binary
*
Multiplication
/ Division
% Modulus
+ Addition
−
Subtraction
<< Left shift
>> Right shift
& Bitwise AND
^ Bitwise exclusive OR
| or ! Bitwise inclusive OR
Table 3.8: Integer Expression Operators
Each assembler has its own operator precedence rules as shown in Table 3.9.
Operators listed on the same line have the same precedence; rows are arranged
in decreasing order of precedence. Also shown is the associativity of each
operator. The rules for asm68 are identical to those of the C language, while the
rules for asm68k are identical to those of the Motorola M68000 Resident
Structured Assembler.