108
RSP Assembly Language
•
Hexadecimal constants, which consist of the characters
0x
(or
0X
)
followed by a sequence of hexadecimal digits
[0123456789abcdefABCDEF]*
.
•
Octal constants, which consist of a leading zero followed by a
sequence of octal digits
[01234567]*
.
•
String constants, which consist of any sequence of alphanumeric
characters (except double quotes) enclosed in double quotes. String
constants are only used for the
directive.
Operators
The following tokens comprise the list of operators:
•
Instruction mnemonics, a sequence of
lowercase
alphanumeric
characters that correspond to the opcodes listed in Appendix A,
“RSP Instruction Set Details.”
•
Directive mnemonics, a sequence of
lowercase
alphabetic
characters that correspond to the list in“Assembly Directives” on
page 114.
•
Expression operators:
+, -, *, /, %, ~, ^, &, |, <<, >>
•
Other character sequences that make up the instruction syntax,
such as square brackets ‘[]’, parentheses ()’, the colon ‘:’, the comma
‘,’, and the period ‘.’.
Comments
The assembler accepts three forms of comments:
•
C-like comments,
/*...*/
. Anything between the beginning and
ending C comment sequence is ignored. (Note: if
cpp
is used before
assembly,
cpp
will remove these comments before the assembler
can parse them)
•
#
comments. Anything from the ‘
#
’ to the end of the line is ignored.
(Note: comments with the ‘
#
’ in column one will confuse the C
pre-processor,
cpp
, if it is invoked on the source code before
assembly)
Содержание 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 ...