flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > A problem with defining a macroinstruction [equ if match] |
Author |
|
revolution 17 Nov 2011, 23:45
You can't mix equ and if like that. All of the equs are processed first before the assembler sees the ifs. A solution is to replace the if blocks with match blocks (see the docs for how to use match). That way the equs will be processed at the same time as the matches.
|
|||
17 Nov 2011, 23:45 |
|
edfed 17 Nov 2011, 23:49
why not just do something like this?
Code: macro Exit arg1{ if arg1 eq push eax else push arg1 end if call [ExitProcess] } |
|||
17 Nov 2011, 23:49 |
|
Sasha 18 Nov 2011, 00:13
edfed wrote: why not just do something like this? May be it's a good idea, but not for a procs with many arguments, i think.. And I want to stay with invoke. Thank you for explanation. |
|||
18 Nov 2011, 00:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.