APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
252
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Name:
SET
.....Name value setting
Format:
<name>
SET
<expression>
Functions:
This instruction is the same as the EQU instruction, it is intended, among others, to improve mainte-
nance of the assembler source code and it serves to link <numeric expressions> with the <names>.
Unlike in the case of the EQU instruction, a name defined by the SET instruction can be redefined any
number of times for other values and can be treated as an assembler variable. Among the attributes of
the cross-reference list, which is one of the output lists of the assembler, those are defined as variables
take this symbol. The right side of the equals sign must be defined before this instruction. The main
object of this instruction is to use the name as a conditional assemble or macro variable and it serves
as a valuable function in the structured preprocessor sap88. However, it does not have too much
application in the cross assembler asm88 itself, other than functioning to permit the redefining of
names.
Length of the expression is not restricted, but up to a 6 character hexadecimal number can be output
to the assembly list. When a 7 or more character hexadecimal number has been defined, a warning is
output.
In the sap88, the name defined by the SET can be used in the conditional expression of the IFC
statement that hereafter occurs, or it can be used as the parameter for the IFDEF/IFNDEF statements.
[sap88 only]
Examples:
abc
set
1
ld
a,#abc
abc
set
2
ld
a,#abc
Related items:
EQU, IFC, IFDEF, IFNDEF, REPT
Limitation:
The <name> description must begin from the 1st column.