Author Topic: Comment  (Read 7648 times)

Ruud

  • Guest
Comment
« 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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Comment
« Reply #1 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

Ruud

  • Guest
Re: Comment
« Reply #2 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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Comment
« Reply #3 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