flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > FASM: IRP with nested comma-containing parameters

Author
Thread Post new topic Reply to topic
DimonSoft



Joined: 03 Mar 2010
Posts: 631
Location: Belarus
DimonSoft
FASM.pdf wrote:
When it's needed to provide macroinstruction with argument that contains some commas, such argument should be enclosed between < and > characters. If it contains more than one < character, the same number of > should be used to tell that the value of argument ends.


Compiling this code
Code:
irp item , c=<a,<b=c,d>>
{
}    

gives “Error: invalid macro arguments” at irp line.

Am I right that this is caused by not having <> balanced between commas? Should I move to irps instead then?
Post 03 Nov 2019, 12:02
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7572
Location: Kraków, Poland
Tomasz Grysztar
In short: yes. Smile
Post 03 Nov 2019, 19:12
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar.

Powered by rwasa.