Specifications

5-6 Programmer’s Guide Sega
Psy-Q Development System
Entire Parameter
If the special parameter \_ (backslash underscore) is encountered in a macro, it is
expanded to the complete argument specified on the macro invocation statement.
Examples All macro
dc.b \_
endm
...
All 1,2,3,4
will generate
db 1,2,3,4
Control Characters
The parameter \^x, where x denotes a control character, will generate the specified
control character.
Using the Macro Label
The label heading the invocation line can be used in the macro, by specifying the first
name in the symbol list of the MACRO directive to be an asterisk (*), and
substituting \* for the label itself. However, the resultant label is not defined at the
current program location. Therefore, the label remains undefined unless the
programmer gives it a value.
Extended Parameters
The Assembler accepts a set of elements, enclosed in curly brackets ({}), to be
passed to a macro parameter. The NARG function and SHIFT directive can then be
used to handle the list:
Example cmd macro
cc equs {\1}
rept narg(cc)
\cc
shift cc
endr
endm