flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Flag in macros. Help to solve. |
Author |
|
baldr 17 Sep 2013, 21:46
Roman,
Do you want to check whether Loo macroinstruction is invoked first time? It can be done several ways: Code: ; Using symbolic constant macro Loo x { match =_Loo, _Loo \{ ; seems that '_Loo' is undefined, let's do it \local ..Loo, ..Loo0 jmp ..Loo0 ..Loo: invoke MessageBox, 0, eax, 0, 0 ret ..Loo0: _Loo equ ..Loo; now it's defined \} mov eax, x call _Loo; here '_Loo' is defined properly in any case } ; Using numeric constant macro Loo x { local ..Loo, ..Loo0 if ~defined _Loo jmp ..Loo0 ..Loo: invoke MessageBox, 0, eax, 0, 0 ret ..Loo0: _Loo = ..Loo end if _Loo = _Loo; make it out of scope above mov eax, x call _Loo } Do you think you'll get twice as much help if you post this in two forums? Then why not in three (or all at once)? And please use [code]…[/code] tags. |
|||
17 Sep 2013, 21:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.