Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple line comments in assembly

Is there a way to comment multiple lines in assembly?

I am using Masm32 v9.

Thanks.

like image 813
nunos Avatar asked Jan 19 '10 19:01

nunos


People also ask

How do you comment out multiple lines in assembly?

In assembly, comments are usually denoted by a semicolon ; , although GAS uses # for single line comments and /* … */ for block comments possibly spanning multiple lines.

How do you do multiple comments?

The keyboard shortcut to comment multiple in Windows is shift + alt + A .

What are multiline comments?

/* */ (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.


1 Answers

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 ;^)

like image 179
Toad Avatar answered Sep 28 '22 00:09

Toad