4.2 Statement Formats
Valid statement formats are shown in Table 4-3.
The label
field is optional and, if present,
should contain one identifier. A label can appear on a line of its own, or precede a
mnemonic as shown in the second format.
The third format is only legal with certain assembler directives, such as
MACRO
, SET
and EQU
. The
name
field is mandatory and should contain one
identifier.
If the assembly source file is first processed by the preprocessor, then it can also contain lines that form valid preprocessor directives. See 5.1 Preprocessor Directives for more information on the format for these directives.
There is no limitation on what column or part of the line in which any part of the statement should appear.
Format # | Field1 | Field2 | Field3 | Field4 |
---|---|---|---|---|
Format 1 | label: |
|||
Format 2 | label: |
mnemonic |
operands |
; comment |
Format 3 | name |
pseudo-op |
operands |
; comment |
Format 4 | ; comment
only |
|||
Format 5 | empty line |