flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Short answer: No.
Long answer: Yes Answer with more detail: No, but yes if you alter the fasm sources. There are also some macro solutions already posted on this board, but they do not work in all situations, but may be suitable for your needs. |
|||
![]() |
|
vid
I'd suggest to just use ";" in the beginning of every line. It is clean, and not so much effort.
|
|||
![]() |
|
MHajduk
alorent
Some time ago I presented that some small changes done in 'PREPROCE.INC' (FASM preprocessor sources) allow us to use C-style /*...*/ multiline comments. ![]() Take a look at this topic: Multiline /*...*/ comments in FASM |
|||
![]() |
|
vid
... and then no one else would be able to compile your sources
|
|||
![]() |
|
revolution
... and you must modify your fasm sources every time there is a new version
|
|||
![]() |
|
MHajduk
vid
... assuming that you want to publish sources of your program. In opposite case I see no problem. This change is only proposition for those, who want make their work easier (I'm still wondering why this kind of comments isn't standard, but I will never receive an answer, of course). |
|||
![]() |
|
vid
For custom hobby projects, and if you don't want to use newer FASM versions (as revolution pointed out), okay. Otherwise, it is a bad idea.
|
|||
![]() |
|
MHajduk
Really, how often the file 'PREPROCE.INC' is changed? With every newer version of FASM? I don't think so, because main changes are made by adding new sets of the macros.
|
|||
![]() |
|
Grom PE
Code: macro comment { these are my comments in several lines bla, bla, bla, bla } |
|||
![]() |
|
windwakr
This is easier than the above, add this to start of your file:
Code: comment fix macro comment then use like: Code: comment{ mov [blah],ax add ax,[bleh] xchg whatever,dx .... } |
|||
![]() |
|
sleepsleep
i actually think it is editor job to have the feature, multiblock comment instead of language.
|
|||
![]() |
|
alorent
windwakr wrote: This is easier than the above, add this to start of your file: Wow, that works just great!!! ![]() Thanks a lot! |
|||
![]() |
|
baldr
alorent,
I'm using old C preprocessor technique of #if/#endif, as in Code: … if 0 invoke ExitProcess, 0 end if … |
|||
![]() |
|
ouadji
Code: comment fix macro comment wonderful ! tks windwakr ![]() |
|||
![]() |
|
vid
hate to repeat the obvious, but when using "if 0" or "comment fi macro comment", don't use it to comment preprocessor code - it might not work.
|
|||
![]() |
|
baldr
vid,
Yep. Any technique has it's limitations, programmer should clearly understand how his/her source will compile (especially when using advanced macros, like invoke ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.