APPENDIX A ASSEMBLER (Sub tool chain)
224
EPSON
S5U1C88000C MANUAL II
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
A.2.4.4 Starting link88
<Operations of link88>
(1) Set the directory in which the relocatable object files (.o) to be linked and the link command parameter
file (.lcm) including link88 command line created with the editor are existed as the current drive.
(2) Start-up the link88 with the next format.
link88_<_
link command parameter file name
_ indicates a space key input.
indicates a return key input.
Regardless of the input redirect function, the link command parameter file can directly be input in the
command line. The procedures will be omitted since it is not practical. Refer to Appendix B for more
information on formatting.
Details on the flags that compose the command line will also be omitted.
Refer to Appendix B for details of the flags.
Example: Performing linking through the link command parameter file (.lcm)
C:\USER>c:\EPSON\link88 < sample.lcm
Use the link command parameter file "sample.lcm" created in the USER of the sub-directory of drive C
as the input redirect function to start-up link88 and perform linking. The name of the absolute object
file specified in the link command parameter file will be created in the same directory as the input file.
If the PATH to link88 is set, then there is not need to specify the path before link88.
Refer to Section A.2.4.2 for the link command parameter file.
A.2.4.5 Batch processing for linking (lk88.bat)
As so with the assembler, this package contains the lk88.bat batch file for linking.
This batch file is prepared so that it can process the procedures from linking to creation of the program
data HEX file. (Details on processing procedures after linking will be noted later.)
Figure A.2.4.5.1 shows the processing flow of lk88.bat.
.o
.o
.o
Relocatable
object files
(create for each module)
.lcm
Link command
parameter file for link88*
Batch processing for linking <lk88.bat>
Absolute
object file
Execute rel88
Creates symbol information
.ref
Symbol information
reference file
* Created by editor
Program data
HEX file
Execute sym88
Creates symbolic table file
.ref
Symbolic
table file
Execute hex88
Converts binary to HEX
Execute link88
Link
.sa
.a
Fig. A.2.4.5.1 lk88.bat processing flow