flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Specifying the separators for arguments for macro |
Author |
|
vid 08 Aug 2004, 12:08
if it could be inplemented without bigger problems / speed loss, it would be nice.
|
|||
08 Aug 2004, 12:08 |
|
VitalOne 11 Aug 2004, 03:12
this macroinstruction feature sounds great
|
|||
11 Aug 2004, 03:12 |
|
Tommy 11 Aug 2004, 06:33
I agree! Such a feature would be cool!
|
|||
11 Aug 2004, 06:33 |
|
Tomasz Grysztar 11 Jun 2005, 19:06
And finally I have made such things possible with the new "match" directive. Just the very simple example:
Code: macro mv arg { match arg1->arg2 ,arg \{ mov arg2,arg1 \} match (arg1==arg2) ,arg \{ mov arg1,arg2 \} } mv 1 -> al mv (al=1) |
|||
11 Jun 2005, 19:06 |
|
vid 11 Jun 2005, 22:27
privalov: wouldn't it be possible to choose different char than "=" to mark matching following symbol literaly? It looks really weird. Something less used, like ":" or "!" or something unused "~","@" etc. All these fits me better than "=".
|
|||
11 Jun 2005, 22:27 |
|
Tomasz Grysztar 11 Jun 2005, 22:36
I've chosen it because it actually suggests what it means. As for the ones you've proposed - the ":" is also very frequently used, so wouldn't be any better choice, "!" and "@" are not special characters (you can use them in names), the "~" is used for negation in conditional expressions and this meaning doesn't coincide well with the operator meaning literality.
|
|||
11 Jun 2005, 22:36 |
|
S.T.A.S. 12 Jun 2005, 10:36
This is even greater than was expected from fasm 2.0
Thanks a lot! |
|||
12 Jun 2005, 10:36 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.