Expression Operators
The built-in assembler provides a variety of operators. Precedence rules are different
from that of the Delphi
language; for example, in an asm statement, AND has lower precedence than the addition and subtraction operators.
The following table lists the built-in assembler's expression operators in decreasing order of precedence.
Operators
Remarks
Precedence
&
highest
(... ),
[... ],
., HIGH, LOW
+,
-
unary
+ and
-
:
OFFSET, TYPE, PTR,
*,
/, MOD, SHL, SHR,
+,
- binary
+ and
-
NOT, AND, OR, XOR
lowest
The following table defines the built-in assembler's expression operators.
Definitions of built-in assembler expression operators
Operator Description
&
Identifier override. The identifier immediately following the ampersand is treated as a user-defined symbol, even
if the spelling is the same as a built-in assembler reserved symbol.
(... )
Subexpression. Expressions within parentheses are evaluated completely prior
to being treated as a single
expression element. Another expression can precede the expression within the parentheses; the result in this case
is the sum of the
values of the two expressions, with the type of the first expression.
Dostları ilə paylaş: