flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 13 Mar 2006, 19:59
EQU is a directive of preprocessor, while IF is a directive of assembler. Thus IF cannot affect the EQU, since prepressor finishes its job even before assembler has the change to look at the source.
This problem is covered in FAQ, and also in my recent Understanding fasm article, which I write to explain those confusing things about preprocessor and assembler (though you have to wait a bit till it's finished). The solution is to use MATCH instead, which can be frequently used as an analogue of IF for the preprocessor. In this case it may look like: Code: macro foo p { match `p,p \{ append p \} } |
|||
![]() |
|
Nikolay Petrov 13 Mar 2006, 20:51
didn't work on fasm 1.64(unexpected characters) - i will download the new version and try it.
thanks again |
|||
![]() |
|
Tomasz Grysztar 13 Mar 2006, 21:05
Oh, right, the ` operator was not yet as fully suppoted by 1.64 as it is by 1.65.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.