Character set
There are defined characters in the operating system assembler language.
All letters and numbers are allowed. The assembler discriminates between uppercase and lowercase letters. To the assembler, the variables Name and name identify distinct symbols.
Some blank spaces are required, while others are optional. The assembler allows you to substitute tabs for spaces.
The following characters have special meaning in the operating system assembler language:
| Item | Description |
|---|---|
| , (comma) | Operand separator. Commas are allowed in statements only between
operands, for example: |
| # (pound sign) | Comments. All text following a # to the end of the line
is ignored by the assembler. A # can be the first character
in a line, or it can be preceded by any number of characters, blank
spaces, or both. For example: |
| : (colon) | Defines a label. The : always appears immediately after
the last character of the label name and defines a label equal to
the value contained in the location counter at the time the assembler
encounters the label. For example: |
| ; (semicolon) | Instruction separator. A semicolon separates two instructions
that appear on the same line. Spaces around the semicolon are optional.
A single instruction on one line does not have to end with a semicolon.
To keep the assembler listing clear and easily understandable,
it is suggested that each line contain only one instruction. For example:
|
| $ (dollar sign) | Refers to the current value in the assembler's current location
counter. For example: |
| @ (at sign) | Used after symbol names in expressions to specify explicit relocation types. |