Specifications

Saturn General Assembler Directives 4-31
Psy-Q Development System
Remarks
The ENDC and ENDIF directives are interchangeable.
If the ELSEIF directive is used without a following expression, it acts the same
as an ELSE directive.
The optional tilde, preceding the operand expression, is synonymous with NOT.
Its use normally necessitates the prudent use of brackets to preserve the sense of
expression.
Examples if Sega-MD
sec_dir equ 2
elseif Sega-CD
sec_dir equ 1
else
sec_dir equ 3
endif
if ~usesquare
round macro
add.l \1,\2
endm
elseif
round macro
endm
endc
movopt macro parm,dest
tempstr substr 1,1,'\parm'
if strcmp('#','\tempstr')
num substr 2,,'\parm'
if ((\num)>-127)&((\num)<128)
moveq #(\num),\dest
else
move.w #(\num),\dest
endif
else
fail
endif
endm