flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > bug ? [solved] |
Author |
|
Tomasz Grysztar 01 Oct 2011, 10:24
"Illegal instruction", similarly to the "err" directive causes unrecoverable error as soon as it is encountered. This is not a good thing in case of resolving errors - that is ones depended on some addresses/size calculated during the resolving process, because they may have intermediate values that are different from the final ones. If you use some kind of recoverable error instead, you get it to assemble:
Code: include 'win32a.inc' struct @Header AA dd ? union BB dd ? struct CC dd ? DD dd ? ends ends ends if sizeof.@Header - 0x0C <> 0 rb -1 end if mov eax,sizeof.@Header |
|||
01 Oct 2011, 10:24 |
|
ouadji 01 Oct 2011, 10:37
Quote: because they may have intermediate values that are different from the final ones. Code: rb -1 thank you Tomasz. |
|||
01 Oct 2011, 10:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.