6.1.2 Statement Formats

Valid statement formats are shown in Table 6-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 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.

Table 6-3. Assembler Statement Formats
Format #Field1Field2Field3Field4
Format 1label:
Format 2label:mnemonicoperands; comment
Format 3namepseudo-opoperands; comment
Format 4; comment only
Format 5empty line