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".)
Содержание S1C62 Family
Страница 1: ...MF599 06 Development Tool Reference Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C62 Family ...
Страница 4: ......
Страница 6: ......
Страница 8: ......
Страница 10: ......
Страница 18: ......
Страница 20: ......
Страница 22: ......
Страница 26: ......
Страница 28: ......
Страница 30: ......
Страница 54: ......
Страница 56: ......
Страница 58: ......
Страница 70: ......
Страница 72: ......
Страница 74: ......
Страница 82: ......
Страница 84: ......
Страница 86: ......
Страница 98: ......
Страница 100: ......
Страница 112: ......
Страница 164: ...Format ICE CONTROL SOFTWARE ICS62XX VIII 50 EPSON S1C62 FAMILY DEVELOPMENT TOOL REFERENCE MANUAL ...
Страница 198: ...Format ICE CONTROL SOFTWARE ICS62XX VIII 84 EPSON S1C62 FAMILY DEVELOPMENT TOOL REFERENCE MANUAL ...
Страница 199: ...Format ICE CONTROL SOFTWARE ICS62XX S1C62 FAMILY EPSON VIII 85 DEVELOPMENT TOOL REFERENCE MANUAL 3 7 HELP Command ...
Страница 206: ......
Страница 207: ...IX MASK DATA CHECKER MDC62XX This part explains how to operate the MDC62XX Mask Data Checker for the S1C62 Family ...
Страница 208: ......
Страница 210: ......