Assembler Guide
Constants
Decimal Constant
A decimal constant is a sequence of digits without a leading zero,
The constant will be stored in the smallest size integer data type that can
hold it without lose of data.
Octal Constant
An octal constant is a sequence of digits with a leading zero,
The constant will be stored in the smallest size integer data type that can
hold it without lose of data.
Hex Constant
A hex constant is a sequence of digits with a leading "0x",
The constant will be stored in the smallest size integer data type that can
hold it without lose of data.
Identifier Constant
An identifier constant is a label, e.g.
Start: movl R0, R1
or an equate, e.g.
.set IPR_ISP 4
A labels value is the address of the label.
An equate's value is the value of the equate.
Character Constant
A character constant is a single quot followed by a character, e.g.
movl 'A, R0
String Constant
A string constant is a sequence of character enclosed in double quotes,
eg. "This is a String"
The C language '\' escape codes are recognised.
eg.
\t translates to tab
\n translates to a new line
\r translates to a CR
\\ translates to a \
...
Strings are not null terminated and have no leading length byte.
Floating Point Constant
A float point constant (F format) is a number of the form 0f±n.ne±n,
D Format Floating Point Constant>
A D format float point constant is a number of the form 0d±n.nd±n,
This type is recognised by the assembler, but is Not supported
by the MacVAX simulator
G Format Floating Point Constant
A G format float point constant is a number of the form 0g±n.ng±n,
This type is recognised by the assembler, but is Not supported
by the MacVAX simulator
H Format Floating Point Constant
A H format float point constant is a number of the form 0h±n.nh±n,
This type is recognised by the assembler, but is Not supported
by the MacVAX simulator