NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Ruud on October 29, 2009, 12:58:46 PM

Title: Comment
Post by: Ruud on October 29, 2009, 12:58:46 PM
Hallo allemaal,


You can add comment to your ASM using the semicolon ';'. But this works only for one line. In C you can outcomment complete blocks by placing then between /* and */. I checked the documentation that came with the program and the online documentation but couldn't find the right syntax.
Can anybody tell me what I can use?

Thank you very much!


Kind regards, Ruud Baltissen
Title: Re: Comment
Post by: Frank Kotler on October 29, 2009, 03:09:53 PM
Multiple ';'s!

Or you can "%if 0"/"%endif". Define 'em as "comment"/"endcomment" if you want.

Why do people want asm to be like C? You wanna use C, use C!

Best,
Frank
Title: Re: Comment
Post by: Ruud on October 29, 2009, 08:30:47 PM
>Multiple ';'s!
Nice if you want to disable a block of over 100 lines temporary for a small test.

> "%if 0"/"%endif"
Conditional compiling. I'll try, thanks for the tip!

> Why do people want asm to be like C?
I'm a Pascal man. But sometimes you have to howl with the wolves.

Groetjes, Ruud
Title: Re: Comment
Post by: Frank Kotler on October 29, 2009, 09:04:52 PM
Good point, Ruud! Owoooo! :)

RosAsm uses ";;" to begin a block comment, and another ";;" to end it. I don't know if we should do something like that. And if so, should it "nest" (as C doesn't)... have to use something different for begin and end...

Best,
Frank