flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Slai
with the new version of FASMW 1.67.7 I get a message "Error: illegal instruction" on "data resource"
should I use something else instead ? |
|||
![]() |
|
Slai
actually, it's not from FASMW, but from the new INCLUDE folder, because when I replace it with an old version of this folder, it works
|
|||
![]() |
|
UCM
Could you show us your code, to make sure that you are not making a fundamental error?
|
|||
![]() |
|
Madis731
maybe like exchanging use16, use32, use64 - sometimes has happened to me
|
|||
![]() |
|
Slai
anyway, I am using a previous version of the INCLUDE folder, so I can compile my programs. I just thought that it might be some kind of bug that should be fixed for the next release of FASM.
|
|||
![]() |
|
madmatt
![]() 1. You need this at the start of your program format PE GUI 4.0 entry WINMAIN 2. change 'entry $' to WINMAIN: 3. remove 'data import' and 'data resource', uncomment the 'section' lines 4. in 'wmsize' section, 'MoveWindow' has wrong number of parameters, should have 5 parameters 5. I"d move your resource and import sections to the bottom of your assembly file. BTW, Fasm works just fine. I've gotten the program to compile but doesn't work correctly, You'll need to do some debugging. ![]() |
|||
![]() |
|
Slai
10x madmatt! I am aware of the above and my eccentric programming
![]() About the 'wmsize' section, the rest of the parameters of 'MoveWindow' are pushed before invoke GetDlgItem so it does not change them. To make it even more complicated, I optimized it to this: Code: wmsize: mov eax, [lparam] shr eax, 16 push TRUE eax mov eax, [lparam] and eax, 0ffffh invoke GetDlgItem,[hwnd],10,0,0,eax invoke MoveWindow,eax jmp finish |
|||
![]() |
|
UCM
madmatt: You don't need to change entry $, I do that all the time and it works
![]() |
|||
![]() |
|
Tomasz Grysztar
Just use win32aX.inc for a header and it will work without "format PE" line.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.