flat assembler
Message board for the users of flat assembler.

Index > Main > Comments in FASM.

Author
Thread Post new topic Reply to topic
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower
A question such - as in a product to comment greater pieces of the text? I.e. without a writing before each line of a symbol ";"?

I use a FASM some years, and till now it I don't know how to do this Sad There were no situations when it would be required to me. In help I have not found this information.
Post 09 Aug 2007, 11:52
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6029
Location: Poland
MHajduk
I made this: Multiline comments /*...*/ in FASM, but, of course, it doesn't matter, because I made it and it won't be in legal FASM distribution.
Post 09 Aug 2007, 13:14
View user's profile Send private message Visit poster's website Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Use this kludge:
Code:
if 0

commmented
out
block
here

end if
    

Will it work Shocked Question

_________________
Code:
 o__=-
 )
(\
 /\  
    
Post 09 Aug 2007, 13:44
View user's profile Send private message Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
But MHajduk why the enhancement made by you is not included in fasm?
Is Privalov kind of I'll do it myself and will not let someone else the credit guy?
I hope not!
Post 09 Aug 2007, 13:50
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6029
Location: Poland
MHajduk
0.1 wrote:
But MHajduk why the enhancement made by you is not included in fasm?
I don't know why and don't see any logical argument against including /*...*/ comments in FASM engine.
Post 09 Aug 2007, 13:54
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386
MHajduk wrote:

> I don't know why and don't see any logical argument against including /*...*/ comments in FASM engine.

Agree ...

Does your hack work with 1.67.22 also ?

Some less cryptic statement on this issue from Tomasz ... or even better adding /* ... */ in 1.67.23 would be appreciated Wink
Post 09 Aug 2007, 16:25
View user's profile Send private message Reply with quote
ChrisLeslie



Joined: 04 Jun 2006
Posts: 50
Location: Australia
ChrisLeslie
I agree that introducing multipline commenting would be a sensible enhancement to FASM and should be integrated into assembler itself.

Chris
Post 09 Aug 2007, 22:56
View user's profile Send private message Reply with quote
Garthower



Joined: 21 Apr 2006
Posts: 158
Location: Ukraine
Garthower
0.1 wrote:
Use this kludge:
Code:
if 0

commmented
out
block
here

end if
    

Will it work Shocked Question


Yes, your exaple works. But what to do, if in a piece of the text which you want to comment, directives like if..end if Question


[MHajduk]
Thanks, your patch is usefull. I did not think, that standard package of FASM has no such opportunity Sad
Post 10 Aug 2007, 07:15
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
0.1



Joined: 24 Jul 2007
Posts: 474
Location: India
0.1
Code:
if 0

any thing can go here
except preprocessor directives

Can we also include invalid code?

end if
    

But nevermind, MHajduk has made that great patch so everyone should use it!

_________________
Code:
 o__=-
 )
(\
 /\  
    
Post 10 Aug 2007, 08:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.