Revision 1.0
Syntax
111
Precedence
Expressions can be grouped with parentheses (recommended) or you can
rely on the following precedence rules:
Note:
The expression operator precedence differs from that of the C
programming language.
Expression Restrictions
The simplified assembly language of the RSP imposes certain restrictions
upon the use of expressions:
•
Any identifier used in an expression must be defined before use.
The expression is evaluated at parsing time, it cannot be delayed
until the value of a forward-referencing symbol is determined.
•
Identifiers cannot be used in expressions used as a branch target or
as a vector register element.
•
Identifiers cannot be used in expressions used in conjunction with
the data initialization directives (
.word, .half, .byte
).
Note:
Identifiers
by themselves
can be used as values for the
.word
and
.half
directives, including forward-referencing
identifiers (this is a special case). Note that you can assign an
-
Minus (unary)
+
Plus (unary)
Table 5-2
Expression Operator Precedence
least binding, lowest precedence:
binary
+,-
...
binary
*,/,%,<<,>>,^,&,|
most binding, highest precedence
unary
+,-,~
Table 5-1
Expression Operators
Operator
Meaning
Содержание Ultra64
Страница 2: ...2 ...
Страница 10: ...10 ...
Страница 12: ...12 Figure 6 2 buildtask Operation 137 ...
Страница 14: ...14 ...
Страница 80: ...80 Vector Unit Instructions vmadm dres_int dres_int vconst 3 vmadn dres_frac vconst vconst 0 ...
Страница 104: ...104 RSP Coprocessor 0 ...
Страница 150: ...150 Advanced Information ...
Страница 155: ...Revision 1 0 155 ...
Страница 248: ...248 Exceptions None ...
Страница 251: ...Revision 1 0 251 Exceptions None ...
Страница 254: ...254 Exceptions None ...
Страница 257: ...Revision 1 0 257 Exceptions None ...
Страница 293: ...Revision 1 0 293 Exceptions None ...
Страница 316: ...316 Exceptions None ...