There are several ways to specify comments:
- Use either type of C-style comment, which can start in any column:
// This is a comment. or
/* This is a comment. */
- Start the comment with an asterisk (*) in the first column of the line.
Note:
The asterisk (*) must be the first character of the line for it to specify a comment. The asterisk has other meanings if it occurs elsewhere in a line.
- Clear the
Allow space in operand field checkbox of the Assembler settings panel. Subsequently, if you type a space in an operand field, all the remaining text of the line is a comment.
-
Anything following a # character is considered to be a comment. For example,
st r3,0(r4) # Store total
- Anything following a ; character is considered to be a comment, except in GNU compatibility mode, where ; is a statement separator.