16

Is there a way to comment multiple lines in assembly?

I am using Masm32 v9.

Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
nunos
  • 20,479
  • 50
  • 119
  • 154

1 Answers1

28

you can use the COMMENT directive to do multi line comments:

 COMMENT @
 This is some text
 And some more text
 @

make sure to chose a delimiter which is not used in the comment itself ;^)

Toad
  • 15,593
  • 16
  • 82
  • 128
  • MSFT link is broken (as always.) [Here's](https://learn.microsoft.com/en-us/cpp/assembler/masm/comment-masm?view=vs-2019) an updated one. Also note that the `delimeter` doesn't have to be a single character. It just has to match the ending delimiter in a case-sensitive way. – c00000fd Jun 06 '20 at 16:45