Operator | Description |
& | Identifier override operator. The following identifier
is considered to be a user defined symbol, even if its spelling is identical
to an assembler reserved word. |
(...) | Parenthesis. Expressions within parenthesis are
evaluated first. |
[...] | Memory reference. The expression within brackets
is evaluated first. This expression should be a valid 386 address.
The resulting expression is always treated as a memory reference. |
HIGH, LOW | High and Low byte selection.
These operators return the high and low 8 bits of the word-size expression
that follows. |
+, - | Unary plus and minus operators.
The expression should be an absolute immediate. |
SMALL, LARGE | Forces the built-in assembler to treat
the following operands as a 16- or 32- bit quantity. |
OFFSET | Returns the 32-bit offset of the expression
that follows. |
SEG | Returns the segment part of the operand. |
TYPE | Returns the type of the operand.
The type of a NEAR symbol is -1, of a FAR symbol is -2.
The type of a memory operand is its size.
The type of an immediate symbol is 0. |
PTR | Typecasts the following expression into the type symbol
that precedes the PTR operator. Valid typecasts are BYTE PTR, WORD PTR,
DWORD PTR, FWORD PTR, TBYTE PTR, QWORD PTR, NEAR PTR, and FAR PTR. |
* | Multiplication. Both arguments must be absolute immediate
quantities, or one of the arguments should be an index register
and the other a scale factor (1,2,4, or 8). |
/ | Division. Both arguments must be absolute immediate
quantities. |
MOD | Integer remainder after division.
Both arguments must be absolute immediate quantities. |
SHL, SHR | Left and right shifts.
Both arguments must be absolute immediate quantities. |
+, - | Addition and Subtraction.
At most one arguments can be a relocatable value and it cannot be
the argument that is being subtracted.
The other argument must be an absolute immediate quantity. |
NOT | Binary complement.
The argument must be an absolute immediate quantity. |
AND | Bitwise AND.
The arguments must be absolute immediate quantities. |
OR | Bitwise OR.
The arguments must be absolute immediate quantities. |
XOR | Bitwise exclusive OR.
The arguments must be absolute immediate quantities. |