CROSS ASSEMBLER ASM62XX
III-12 EPSON S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
■ DW (Define Word)
<Label>_DW_<Expression> To preset data
The DW pseudo-instruction assigns the value of <expression> (the low-order 12 bits when the value is
greater than 12 bits) to the current memory location, indicated by the location counter.
Examples:
Location counter
(BNK) (PCP) (PCS)
0 2 0A TABLE DW 141H ; = RETD 'A'
0 2 0B DW 142H ; = RETD 'B'
0 2 0C DW 143H ; = RETD 'C'
:
<label> can be omitted.
4.5.2
Memory setting pseudo-instructions
The program memory mounted at the S1C62XXX is divided into 256-step pages. Memory management
(including the setting of the program location and page boundaries) during program generation must be
controlled by the source program.
The memory setting pseudo-instructions are used to specify memory management. The assembler sets the
location counter according to these pseudo-instructions.
If a memory area that has already been used is specified or a statement that exceeds the page is used
without specifying that the statement is to exceed the page, the assembler displays an exclamation mark "!",
indicating a warning, and ignores all subsequent statements until the next correct statement. This should
be taken into account.
When using the auto-page-set function, the space for insertion of the "PSET" pseudo-instruction must be
allocated in each page.
■ ORG (Origin)
ORG_<Expression> To set the location counter
The ORG pseudo-instruction sets the location counter to the value of <expression>.
If the ORG pseudo-instruction is not written at the beginning of the program, the location counter is set
to 0 (BNK=0, PCP=0, PCS=0) and assembly is started.
The ORG pseudo-instruction can be used at multiple locations in the program. However, it cannot be
used to set the location to a value before the current location. If this is attempted, an exclamation mark
"!", indicating a warning, is displayed, and all subsequent statements until the next correct statement are
ignored.
A label can be written before the ORG statement, but it cannot be referenced because it is not cataloged
in the label table. In this case, write the label in the statement following the ORG pseudo-instruction.
Example:
ORG 0100H ; BNK=0, PCP=1, PCS=00H
START :
An R-error occurs if a value is specified exceeding the ROM capacity.
Note The upper limit of program memory depends on the model. (Refer to the "S5U1C62xxxD
Manual".)