Table of Contents        Previous topic       Next topic       

CROSS ASSEMBLER->Assembler Source Code Format->Comment Field

The comment field follows the operand field or if an operand field is not required by the operation, it follows the operation field.  It is separated from the operand or opcode by one or more spaces. The comment field may contain any number of spaces.

If an operation is not present but there is a label present, then the comment field must start with an asterisk '*'.  If there is no label and no opcode then the whole line can be designated as a comment field by placing an asterisk at the start of the line.

The assembler ignores the comment field except when sending the assembly listing to the list device.

Care should be taken not to accidentally include a space character in the operand since the rest of the operand will then be treated as the comment field and ignored.  This will often generate an assembly error because the operand is not correct.  However, if the part of the operand preceding the space character is a correct operand in its own right then an error message will not be generated.