flat assembler
Message board for the users of flat assembler.
Index
> Main > if~ defined - = |
Author |
|
Tomasz Grysztar 13 May 2004, 12:59
In first pass "VERSION" constant gets defined after it was referenced, so fasm needs to do the next pass, and this time "defined VERSION" is predicted to be true and "VERSION" doesn't get defined and one more pass is needed and so on.
The correct variant should be: Code: if ~ defined VERSION | defined VERSION_DEFINED_HERE VERSION = 0x400 VERSION_DEFINED_HERE = 1 end if Last edited by Tomasz Grysztar on 25 May 2004, 15:10; edited 1 time in total |
|||
13 May 2004, 12:59 |
|
uri 13 May 2004, 13:03
Thanks, it was so quickly.
I was wrote on masm more than 5 years, and 3 weeks ago i was try to use fasm. Now i rewrite my masm macroses on fasm. Fasm - very good thing, and i'm glad to see that. Thanks. |
|||
13 May 2004, 13:03 |
|
vid 13 May 2004, 18:30
i suggest you macro
Code: macro ifndef expr { local HERE if defined HERE | ~ defined expr HERE = 1 } usgae: Code: ifndef a a = 5 end if ifndef (a+5)*c a=5 c=3 end if |
|||
13 May 2004, 18:30 |
|
zjlcc 25 May 2004, 19:57
oh yeah i made "overlay" !!! more thanks for Privalov,vid and uri i like FASM |
|||
25 May 2004, 19:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.