flat assembler
Message board for the users of flat assembler.
Index
> Main > The question about if and include directives |
Author |
|
Tomasz Grysztar 06 May 2021, 11:34
In fasm INCLUDE is a preprocessor's directive, while IF is directive of the assembler. At the time when the source text is assembled, all preprocessing has already been done, so by the time the assembler sees the IF construct, INCLUDE statements have already been unrolled.
If you tried the same with fasmg, which has preprocessor and assembler combined into one, you'd get what you expected here. |
|||
06 May 2021, 11:34 |
|
revolution 06 May 2021, 13:34
kiselevd2002: You can use match instead of if to make conditional includes.
Code: match 0, USE_NO_PAYLOAD { include '...' } |
|||
06 May 2021, 13:34 |
|
kiselevd2002 10 May 2021, 06:17
revolution wrote: kiselevd2002: You can use match instead of if to make conditional includes. This does not work either... I tried. |
|||
10 May 2021, 06:17 |
|
kiselevd2002 10 May 2021, 06:19
Tomasz Grysztar wrote: In fasm INCLUDE is a preprocessor's directive, while IF is directive of the assembler. At the time when the source text is assembled, all preprocessing has already been done, so by the time the assembler sees the IF construct, INCLUDE statements have already been unrolled. Please, advise then how should I do in my case? Should I use -d flag in command line? Or what? |
|||
10 May 2021, 06:19 |
|
Tomasz Grysztar 10 May 2021, 08:17
kiselevd2002 wrote:
Code: match =0, USE_NO_PAYLOAD { include '...' } |
|||
10 May 2021, 08:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.