APPENDIX B CREATING PROCEDURE OF ASSEMBLY SOURCE FILE (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
249
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
Name:
DL
..... Reserve/constant setting of the long word unit data area
Format 1:
DL <expression> {,<expression>}*
Format 2:
DL <expression> (<numeric expression>) {,<expression> (<numeric expression>)}*
Format 3:
DL [<numeric expression>] {,[<numeric expression>]}*
Functions:
This instruction is used to reserve the long word (4 bytes) unit data area and to set the constant. The
setting of constants are done according to a string of numeric values delimited by a comma or the
specification for the repeat number. The parameters for this instruction can be described over several
lines. Further when this instruction is used, it should be described within the DATA (RAM) area when
reserving data area, and within the CODE (ROM) area when setting constant. The code generation
rules for each format are as follows.
• Format 1
This format defines the optional constant as the optional number of object codes in long word (4
bytes) units and multiple expressions can be specified for an operand field. The expression is handled
as a long word constant value or symbol value and when multiple specifications are made, the object
codes are generated in the order of specification.
• Format 2
This format repeat defines the optional constant in long word units and sets the repeat number in a
<numeric expression> enclosed by parentheses.
• Format 3
This format reserves the area for the number of long words that have been assigned by the <numeric
expression> enclosed by brackets. The code generated within the object at this time is 0.
Integer numeric constants, character constants and symbols can be used as the expressions for formats
1 and 2. When the expression has a relocatable quality, the lower 16 bits value is rearranged as a valid
value during linking. Each format can be premixed for one instruction.
Examples:
lubarr:
dl [10]
;
Reserves 10 4 byte size areas
lonum:
dl 13768
;
Sets the constant lonum with a long word size integer
Related items:
DB, DW