Example 2. Calling a Macro With Varying Numbers of Arguments

Macro definition:

Parms .macro a,b,c ; a = :a: ; b = :b: ; c = :c: .endm

Calling the macro:

Parms 100,label Parms 100,label,x,y ; a = 100 ; a = 100 ; b = label ; b = label ; c = "" ; c = x,y Parms 100, , x Parms "100,200,300",x,y ; a = 100 ; a = 100,200,300 ; b = "" ; b = x ; c = x ; c = y Parms """string""",x,y ; a = "string" ; b = x ; c = y