Operators

The assembler provides three types of unary operators.

All operators evaluate from left to right except for the unary operators, which evaluate from right to left.

The assembler provides the following unary operators:

Item Description
+ unary positive
- unary negative
~ one's complement (unary)

The assembler provides the following binary operators:

Item Description
* multiplication
/ division
> right shift
< left shift
| bitwise inclusive or
& bitwise AND
^ bitwise exclusive or
+ addition
- subtraction

Parentheses can be used in expressions to change the order in which the assembler evaluates the expression. Operations within parentheses are performed before operations outside parentheses. Where nested parentheses are involved, processing starts with the innermost set of parentheses and proceeds outward.