Precedence; Expression Restrictions; Table 5-2 Expression Operator Precedence - Nintendo Ultra64 Programmer's Manual

Rsp
Table of Contents

Advertisement

Revision 1.0
Table 5-1 Expression Operators
Operator
Meaning
Minus (unary)
-
Plus (unary)
+

Precedence

Expressions can be grouped with parentheses (recommended) or you can
rely on the following precedence rules:

Table 5-2 Expression Operator Precedence

least binding, lowest precedence:
...
most binding, highest precedence
The expression operator precedence differs from that of the C
Note:
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).
Identifiers
Note:
.word and .half directives, including forward-referencing
identifiers (this is a special case). Note that you can assign an
binary
+,-
binary *,/,%,<<,>>,^,&,|
unary +,-,~
by themselves
can be used as values for the
Syntax
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents