flat assembler
Message board for the users of flat assembler.
Index
> Main > Problem with EQU in conditional compilation |
Author |
|
LocoDelAssembly 13 Oct 2009, 18:42
That is because the preprocessor doesn't see the assembler stage IF-ELSE.
If you can change DEFINE_YEAR to "DEFINE_YEAR equ 1" or even "DEFINE_YEAR equ yes" then you could do this: Code: DEFINE_YEAR equ yes match =yes, DEFINE_YEAR{pyear EQU 'ok'} match =no, DEFINE_YEAR{pyear equ 'error_error_error'} mov eax, pyear ; You'll get an error with "DEFINE_YEAR equ no", though. |
|||
13 Oct 2009, 18:42 |
|
Tomasz Grysztar 13 Oct 2009, 18:59
You may want to check out the fourth question in FAQ, too.
|
|||
13 Oct 2009, 18:59 |
|
alorent 13 Oct 2009, 19:57
Thanks a lot!!! It works great with "match" approach
Thanks Tomasz for the link, I was reading through all docs by I might have missed that |
|||
13 Oct 2009, 19:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.