APPENDIX A ASSEMBLER (Sub tool chain)
212
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
The DATA section consists of DATA sections with one or multiple modules and the maximum size is
limited to 64K bytes as one page is. (Details on section control will be explained in "A.2.4.2 Section
control".) Therefore, the programmer must be careful not to use more than 64K bytes in the code when
creating a module. The capacity of the DATA section can be verified by using the -RAM# flag when
starting-up the asm88. Use of this feature is advised.
For example, when flag specification for "-RAM 65535" is performed, an error message will be dis-
played if a DATA section of one module exceeds 64K bytes.
CODE
:
:
DATA
:
CODE
:
DATA
:
Assembly source file
C1
D1
C2
D2
Object code
C1
C2
D1
D2
CODE
section
DATA
section
Fig. A.2.3.2.1 CODE section and DATA section
Note
If either the CODE pseudo-instruction or DATA pseudo-instruction is missing during relocatable
assembling the operation will result in an error. For this reason, it is important that the CODE pseudo-
instruction is used for the program memory and the DATA pseudo-instruction is used for the data
memory.
A.2.3.3 Starting sap88 and asm88
<sap88 operation procedure>
(1) Set the directory in which the structured assembly source file (.s) is presented as the current drive.
(2) Start-up the sap88 with the next format.
sap88_[
flag
]_
input file
_ indicates a space key input.
indicates a return key input.
The following indicates the flag used for batch processing of relocatable assembly (ra88.bat).
Flag
-o
<file name>
Description
Specify the file name that is output. (Specify ".ms" as the extension of the file to be output.)
If this flag is omitted it will be processed as a standard output.
Refer to Appendix C for information on other flags.
Example:
C:\USER>c:\EPSON\sap88 -o sample.ms sample.s
Inputs the assembly source file "sample.s" created in the sub-directory USER of drive C and then
creates assembly source file "sample.ms" to be input in asm88 in the same directory as the input file.
If the PATH to sap88 is set, then there is not need to specify the path before sap88.
Refer to Section "A.2.3.9 Example of assembly execution" for more information on I/O files and messages
displayed.