APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
269
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Name:
IFNDEF
..... Conditional assembly by the name either undefined or defined
Format:
IFNDEF
<name>
<statement string> [
ELSEC
<statement string> ]
ENDIF
Functions:
If the name is not defined neither by the EQU statement or SET statement, nor defined by the DEFINE
statement as a character-string macro name, the statements following the IFNDEF line will become a
subject to be assembled until either the ELSEC line or the ENDIF line occurs. If the name is defined,
the statements following the IFNDEF line will not be processed as a subject to be assembled. In
addition, in the case that there is an ELSEC line, the portion between the ELSEC line and the ENDIF
line corresponding to the IFNDEF line will become a subject to be assembled if the name of the
IFNDEF line is defined. If not defined, the portion 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 that time will correspond to the inside IFC/IFDEF/IFNDEF lines.
Example:
ifndef
SMALL_MEMORY
stack_start
equ
3800h
stack_size
equ
800h
elsec
stack_start
equ
4000h
stack_size
equ
1000h
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.