flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Equivalent of TASM & dummy argument separator in FASM

Author
Thread Post new topic Reply to topic
ACP



Joined: 23 Sep 2006
Posts: 204
ACP 09 Mar 2013, 00:07
While converting some old TASM code to FASM I've found one feature of TASM that I have never used in FASM before: & as dummy argument separator in macros body.

I can't find similar feature in FASM manual so I suspect that situation might be similar to ifndef: you need to write own macro to handle it. However if anyone has already solved the problem of using TASM & dummy arguments and symbols in FASM macro I would be grateful for any tips.
Post 09 Mar 2013, 00:07
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 09 Mar 2013, 08:21
ACP,

Dou you mean & macro operator that replaces following parameter with its actual value? It is used (mostly) to concatenate symbols in macro body (fasm uses # operator for this).

If you post some examples, it may become clearer.
Post 09 Mar 2013, 08:21
View user's profile Send private message Reply with quote
ACP



Joined: 23 Sep 2006
Posts: 204
ACP 09 Mar 2013, 11:14
Thank you baldr! This was exactly what I've been looking for.

I'm porting DESQView API library to FASM and most of code are either equates (no porting needed to be done there) and macros. Thanks to your tip I've been able to fix some errors I had during compilation and first example file compiled successfully under FASM for the first time Smile Now I just need to fix some errors I've made during porting and hopefully everyone will be able to write DESQView apps with FASM.
Post 09 Mar 2013, 11:14
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.