![Epson S1C88 Series Manual Download Page 345](http://html.mh-extra.com/html/epson/s1c88-series/s1c88-series_manual_106917345.webp)
Structured Preprocessor sap88
Sub Tool Chain
Outline
The structured preprocessor sap88 adds the macro functions to the cross
assembler asm88.
The sap88 expands the macro and structured control statements included in
the specified S1C88 assembly source file into a format that can be assembled
by the asm88, and outputs it. At this time, the sap88 also executes the
processing for including of the modularized S1C88 assembly source files and
conditional assembly.
Startup Command
sap88 [flags] <file name>
Flags
-d<macro>
A character-string macro is defined prior to reading in an input file.
<macro>: <character-string macro name> = <substitution character string>
or <character-string macro name>
-l<label>
The front character string of a label name that is created at the time of
the expansion of the structured control statement is designated. It is "L"
in default.
-o<file name>
An output file name is turned to *. The default status is standard output.
-q
Does not output any message related to processing of the structured
preprocessor.
Error Messages
unexpected EOF in ~
The file is terminated in the middle of ~.
can't include ~
~ cannot be included.
illegal ~
~ is incorrect.
illegal define
"define" statement is incorrect.
illegal expression at ~
~ in the expression is incorrect.
illegal undef
"undef" statement is incorrect.
Pseudo-Instructions
INCLUDE <file>
Another file insertion
<macro>
MACRO [<param>,...]
Macro definition
<statements>
[EXITM]
<statements>
[<macro>] ENDM
DEFINE
<macro> [<character string>]
Character-string macro definition
LOCAL
[<label>,...]
Definition of local label
PURGE
[<macro>]
Macro deletion
UNDEF
<macro>
Deletion of a character string macro
IRP
<param>,<arg>[,<arg>...]
Repetition by character strings
<statements>
ENDR
IRPC
<param>,<arg>
Repetition by characters
<statements>
ENDR
REPT
<expression>
Repetition by the specified number of times
<statements>
ENDR
IFC
<condition>
Conditional assembly by conditional expression
<statements>[
ELSEC
<statements>]
ENDIF
IFDEF
<name>
Conditional assembly by the name either defined or
<statements>[
undefined
ELSEC
<statements>]
ENDIF
IFNDEF
<name>
Conditional assembly by the name either undefined or
<statements>[
defined
ELSEC
<statements>]
ENDIF