Epson S1C62 Family Manuel D’Utilisation

Page de 219
CROSS ASSEMBLER ASM62XX
III-2
EPSON
S1C62 FAMILY
DEVELOPMENT TOOL REFERENCE MANUAL
2 ASM62XX OUTLINE
2.1 Outline
The ASM62XX cross assembler (the ASM62XX in this manual) is an assembler program for generating the
machine code used by the S1C62XXX 4-bit, single-chip microcomputers.  It can be used under PC-DOS.
The Cross Assembler ASM62XX will assemble the
program source files which have been input by the
user's editor and will generate an object file in Intel-
Hex format and assembly list file.
In this assembler, program modularization has been
made possible through macro definition functions and
programming independent of the ROM page structure
has been made possible through the auto page set
function. In addition, consideration has also been given
to precise error checks for program capacity (ROM
capacity) overflows, undefined codes and the like, and
for debugging of such things as label tables for assem-
bly list files and cross reference table supplements.
The program name of the assembler is ASM62XX.EXE.
Figure 2.1.1 shows the ASM62XX execution flow.
Fig. 2.1.1  ASM62XX execution flow
A>EDLIN C2XXYYY.DAT
Create the source file
A>ASM62XX C2XXYYY
Execute the cross assembler
C2XXYYY
.DAT
C2XXYYY
.PRN
C2XXYYYL
.HEX
C2XXYYYH
.HEX
Error
message
Error
message
Assembly
listing file
Object file
2.2 ASM62XX Input/Output Files
ASM62XX reads a source file, assembles it, and outputs object files and an assembly listing file.
Source file (C2XXYYY.DAT)
This is a source program file produced using an editor such as EDLIN.  The file name format is
C2XXYYY, and the file name must not exceed seven characters in length.  Character string YYY should
be determined by referencing the device name specified by Seiko Epson.  The file extension must be
added ".DAT".
Object file (C2XXYYYH.HEX, C2XXYYYL.HEX)
This is an assembled program file in Intel hex format.  Because the machine code of the S1C62XXX is 12-
bit, the high-order bytes (bits 9 to 12 suffixed by high-order bits 0000B) are output to file
C2XXYYYH.HEX, and the low-order bytes (bits 8 to 1) are output to file C2XXYYYL.HEX.
Assembly listing file (C2XXYYY.PRN)
This is a program listing file generated by adding an operation codes and error messages (if any errors
have occurred) to respective source program statements.  A cross-reference table is generated at the end
of the file, depending on the label table and options.  The file name is C2XXYYY.PRN.
See the Appendix for the contents of each file.