APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
268
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Name:
IFDEF
.... Conditional assembly by the name either defined or undefined
Format:
IFDEF
<name>
<statement string> [
ELSEC
<statement string> ]
ENDIF
Functions:
If the name is defined by either the EQU statement or the SET statement, or is a character-string macro
name which is defined by the DEFINE statement, the statements following the IFDEF line will become
a subject to be assembled until either the ELSEC line or ENDIF line occurs. If the name is undefined,
the statements following the IFDEF line will not become a subject to be assembled. In the case that
there is an ELSEC line, the portion between the ELSEC line and the ENDIF line corresponding to the
IFDEF line will become a subject to be assembled if the name of the IFDEF line is not defined. If the
name is defined, the ELSEC line through the ENDIF line will not become a subject to be assembled.
Each statement of IFC, IFDEF and IFNDEF can be nested to the depth of your choice. The ELSEC line
and the ENDIF line at this time corresponds to the inside IFC/IFDEF/IFNDEF lines.
Example:
ifdef
EXTRA_MEMORY
stack_start
equ
4000h
stack_size
equ
1000h
elsec
stack_start
equ
3800h
stack_size
equ
800h
endif
Related items:
DEFINE, EQU, IF, IFNDEF, SET
Limitation:
This pseudo-instruction can only be used in the structured preprocessor sap88. It cannot be accepted
in the asm88 and will cause an error if used.