flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > macro _[strings]{common display strings} <- no commas

Author
Thread Post new topic Reply to topic
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
idle 03 Jul 2011, 12:10
Code:
macro _[strings]{common display strings}
_ "1",'2',"3"
purge _
    

displays 123
expected 1,2,3
fasm.pdf, pg.88:
Code:
If some name inside macroinstruction has multiple values (it is either one
of the arguments enclosed in square brackets or local name defined in the
block following forward or reverse directive) and is used in block following
the common directive, it will be replaced with all of its values, separated with
commas.    
Post 03 Jul 2011, 12:10
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 03 Jul 2011, 13:11
macro gets parsed to
Code:
display "1","2","3"    


Read description of "display". This behavior is expected.
Post 03 Jul 2011, 13:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
idle 03 Jul 2011, 16:02
thank you
Post 03 Jul 2011, 16:02
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.