Comments are useful for documenting the source program. The assembler recognizes
the semicolon (;
) as a comment delimiter character. Any character
or sequence of characters preceded by a semicolon is considered a comment. Comments
can occupy an entire line, or can be placed at the end of a source statement.
Examples:
; This comment occupies an entire line
LDAC 1000 ; This is a trailing comment
Numeric constants can be used in source statements. If there is no postfix, the assembler assumes the number is decimal.
number |
can be one of the following:
Lowercase equivalences are allowed: |
bin_num |
is a binary number consisting of the digits ' Examples:
|
dec_num |
is a decimal number consisting of the digits ' Examples:
|
oct_num |
is an octal number consisting of the digits ' Examples:
|
hex_num |
is a hexadecimal number consisting of ' Examples:
|
The assembly process can be controlled by assembler directives. The assembler interprets the assembler directives instead of translating them into machine instructions. The assembler supports the following directives:
Directive |
Description |
|
Assemble the subsequent source statements starting at
the specified address, Examples:
|
|
Store the specified 1-byte constant Examples:
|
|
Store the specified 2-byte constant Examples:
|
The assembler also supports jump to lables of the form label_name: (notice the : after the label name). The labels are not case censetive.
Example:
JMP MyLabel
....
MyLabel: ....
At the main window, click on the View Results button. A dialog box will open displaying the last assembly results.