Mathematical expressions can typically be used anywhere a number
is required in an addressing mode or directive parameter.
Note that care must be taken when using expressions because the
assembler, in many cases, does not check for overflows while
computing the value of an expression. For example, the expression
($FFFFFFFF + 1) / 2 will overflow during calculations and produce
a value of 0 when a value of $7FFFFFFF may be expected. All
calculations are performed using 32-bit binary arithemetic and
then converted to the correct size for code generation.
See Mathematical Values,050, for information about legal value
formats for mathematical expressions.
Order of Operation: The assembler uses standard order of
1. All expressions in parentheses are evaluated.
2. All negations and logical NOT operations are completed.
3. All logical AND and OR operations completed.
4. All multiply, division, and MOD operations are completed.
5. All addition and subtraction operations are completed.
List of Operations: The following is a list of legal operations and