Is there a way to comment multiple lines in assembly?
I am using Masm32 v9.
Thanks.
In assembly, comments are usually denoted by a semicolon ; , although GAS uses # for single line comments and /* … */ for block comments possibly spanning multiple lines.
The keyboard shortcut to comment multiple in Windows is shift + alt + A .
/* */ (multiline comment) Multiline comments are used for large text descriptions of code or to comment out chunks of code while debugging applications. Comments are ignored by the compiler.
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 ;^)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With