flat assembler
Message board for the users of flat assembler.
Index
> Windows > Message procedure |
Author |
|
LocoDelAssembly 31 Jul 2005, 15:28
Remove TRUE, the .endw will generate a jump to "invoke GetMessage" giving you an infinite while loop
Code: .while invoke GetMessage,Msg,NULL,0,0 or eax,eax je .exit invoke TranslateMessage,Msg invoke DispatchMessage,Msg .endw .exit: |
|||
31 Jul 2005, 15:28 |
|
Ancient One 01 Aug 2005, 01:21
Fasm .while is a macro that resolved to testing the argument using asm instruction (i.e cmp).. thats why u cannot use constant as argument.
|
|||
01 Aug 2005, 01:21 |
|
LocoDelAssembly 01 Aug 2005, 01:41
Ancient One wrote: Fasm .while is a macro that resolved to testing the argument using asm instruction (i.e cmp).. thats why u cannot use constant as argument. Partially true, if you put a constant on the right it compiles. For example ".while eax=0" works but ".while 0=eax" not (at least in Fasm 6.2 package) |
|||
01 Aug 2005, 01:41 |
|
Ancient One 01 Aug 2005, 01:46
i mean a constant by itself.
|
|||
01 Aug 2005, 01:46 |
|
Tomasz Grysztar 01 Aug 2005, 09:02
I updated the IF.INC to do well also in such case -please try with the latest fasm for Windows package.
|
|||
01 Aug 2005, 09:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.