flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Checking if symbol is defined doesn't make it used? |
Author |
|
Tomasz Grysztar 16 Aug 2011, 16:09
Both 8-byte and 0-byte are the correct solutions to this source, so you have to play some tricks with fasm to make it choose a different route while resolving. Since "used" has default value FALSE when there is not enough information to make prediction, and this happens in the first pass, it chooses the "skip-if" route in the first pass and this leads to finding the 0-byte solution. You can, however, use this trick to make the first "if" block be assembled in the first pass:
Code: if used x | ~defined @f x dd 0 end if @@: if defined x a y dd x end if |
|||
16 Aug 2011, 16:09 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.