flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > if defined A, if A eq... |
Author |
|
revolution 23 Sep 2016, 18:26
The preprocessor is completely blind to the assembly lines. So the preprocessor sees this:
Code: A equ 'A' ;if ~defined A A equ 'B' ;end if ;display A ;if A eq 'A' A equ 'C' ;end if ;display A |
|||
23 Sep 2016, 18:26 |
|
edfed 23 Sep 2016, 18:38
i was quite sure of this, but did not find this in the doc.
note: display works |
|||
23 Sep 2016, 18:38 |
|
revolution 23 Sep 2016, 18:41
display is processed at assembly time, after all the equs. The assembler see this:
Code: ;A equ 'A' if ~defined 'A' ;A equ 'B' end if display 'B' if 'B' eq 'A' ;A equ 'C' end if display 'C' |
|||
23 Sep 2016, 18:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.