Revision 1.0
Syntax
109
•
;
comments. Anything from the ‘
;
’ to the end of the line is ignored.
Program Sections
An RSP program has only two sections, a text section (
.text
) and a data
section (
.data
).
The text section is assembled in sequence, with only one base address for
assembly (see
.text
directive).
The data section is built up in sequence, however multiple data section base
addresses are permitted (see
.data
directive).
A program may switch between text and data segments many times, using
.text
or
.data
directives without base addresses.
Labels
A label is an identifier with a colon (
:
) appended. There can be no
whitespace between the identifier and the colon. Labels can be used as
program labels (targets of branching instructions) or in the data segment to
define DMEM addresses (and later used as constants or in expressions).
Multiple consecutive labels in the data section are permitted, they evaluate
to the same value.
Multiple consecutive labels in the text section are not permitted.
Labels in the text section can also be followed by directives. In this case, the
value of the label is the address of the next executable instruction.
Keywords
Reserved keywords include all operators listed in the section “Operators”
on page 108.
Reserved keywords cannot be used as identifiers.
Summary of Contents for Ultra64
Page 2: ...2 ...
Page 10: ...10 ...
Page 12: ...12 Figure 6 2 buildtask Operation 137 ...
Page 14: ...14 ...
Page 80: ...80 Vector Unit Instructions vmadm dres_int dres_int vconst 3 vmadn dres_frac vconst vconst 0 ...
Page 104: ...104 RSP Coprocessor 0 ...
Page 150: ...150 Advanced Information ...
Page 155: ...Revision 1 0 155 ...
Page 248: ...248 Exceptions None ...
Page 251: ...Revision 1 0 251 Exceptions None ...
Page 254: ...254 Exceptions None ...
Page 257: ...Revision 1 0 257 Exceptions None ...
Page 293: ...Revision 1 0 293 Exceptions None ...
Page 316: ...316 Exceptions None ...