Program Sections; Labels; Keywords - Nintendo Ultra64 Programmer's Manual

Rsp
Table of Contents

Advertisement

Revision 1.0
Syntax
; 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.
109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents