flat assembler
Message board for the users of flat assembler.
Index
> Windows > [fasmg] Problem creating a MS COFF |
Author |
|
Tomasz Grysztar 30 Nov 2022, 07:00
WIN32AX.INC was designed to work with PE output, and I forgot to consider that it may have worked with other formats. Both fasm's and fasmg's version automatically set up PE format unless it was already selected, but they do so in different ways, hence incompatibility.
The version for fasm was doing this: Code: virtual at 0 xchg eax,eax detected_16bit = $-1 end virtual if detected_16bit format PE GUI 4.0 end if In case of fasmg this logic would not work, because there might not be instruction set at all in the beginning, so it might not be possible to determine the mode in such way. That's why fasmg's version simply checks whether PE format has been set up already: Code: if ~ definite PE format PE GUI 4.0 end if Code: if ~ definite PE & ~ definite x86.mode format PE GUI 4.0 end if |
|||
30 Nov 2022, 07:00 |
|
alorent 30 Nov 2022, 08:14
Thanks Tomasz!
You are right, that line causes the problem. I have removed that code from WIN32AX.INC and not it assembles correctly. Thanks again |
|||
30 Nov 2022, 08:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.