A166 User's Guide

Operators

Operators may be unary (requiring one operand) or binary (requiring two operands). The combination of an operator and its operand(s) is an expression. Parentheses may be used in expressions with multiple operators to specify the order in which operators are evaluated. If no parentheses are used in an expression, operator precedence determines the evaluation order.

Following is the operator precedence table:

LevelOperators
0( )
1.
2BIT PTR BYTE PTR WORD PTR NEAR PTR FAR PTR
DATA3 DATA4 DATA8 DATA16 DATA32 DATA64
DPPx SEG PAG SOF POF BOF
3HIGH LOW
BYTE0 BYTE1 BYTE2 BYTE3 BYTE4 BYTE5 BYTE6 BYTE7
WORD0 WORD2 WORD4 WORD6
NOT Unary + Unary -
4* / MOD
5+ -
6SHL << SHR >>
7AND & OR | XOR ^
8EQ == NE != LT < LE <= GT > GE >=
ULT ULE UGT UGE
9SHORT