Comments

There are several ways to specify comments:

  1. Use either type of C-style comment, which can start in any column:
    // This is a comment.
    /* This is a comment. */
  2. Start the comment with an asterisk (*) in the first column of the line. Alternate comment specifiers, for compatibility with other assemblers, are #, .*, and --.
    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.
  3. Use a processor-specific comment character anywhere on the line (the processor-specific chapter of this document explains whether such a character exists for your target processor). A Kinetis example is:

    mov r0,r1        ;This is a comment

    A PowerPC example is;

    mov r1,r0        #This is a comment

    Note: GNU compatibility mode may involve a different comment character, and may involve a different meaning for the ; character.
  4. 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.