APPENDIX A ASSEMBLER (Sub tool chain)
S5U1C88000C MANUAL II
EPSON
207
WORKBENCH/DEV TOOLS/OLD ASSEMBLER
A.2.2 Creating Source File
Software used:
Editor
Create the source file using an editor.
Small applications can be created solely in assembler language with the entire program as a single
module.
What's more, source files for single module can also be allocated by using the INCLUDE pseudo-instruc-
tion of the sap88 structured preprocessor.
Generally, debugging requires appropriate consideration to module allocation since source files are each
created for respective modules.
Create source files for assembler modules by using the S1C88 CPU instruction set or assembler pseudo-
instructions.
Specify the assembly source file name with a ".s" on the extension.
Each source program statement basically comes in the following form.
Symbol field
Mnemonic field
Operand field
Comment field
• Symbol field:
This field indicates the symbol. Always put a colon (:) immediately after the symbol, other than for
EQU or SET command statements.
• Mnemonic field:
This field indicates the operation code and pseudo-instruction.
• Operand field:
This field indicates the operand, constant, variable, defined symbol, symbol that indicates the
memory address and formula of each instruction.
• Comment field:
A semi-colon (;) at the beginning of this field, then continued with a comment.
Refer to Appendix B of this manual for more information on how to create a source file.
Macro statement offered by the sap88 structured preprocessor and various pseudo-instructions of the
asm88 cross assembler can be used for this assembler.
The following indicates an outlines of these statements and instructions.
<Instruction set>
All S1C88 Family models employs a S1C88 in the core CPU. Therefore, instructions are common for all
models other than for CPU MODELS and mode limitations. Refer to the "S1C88 Core CPU Manual" for
more information on the instructions, and refer to the "S1C88xxx Technical Manual" for control program
examples of the peripheral circuit incorporated in each model.
The asm88 cross assembler is capable of converting all mnemonic instruction settings of the S1C88 into
machine language.
<Macro statement>
Macro is used to priorly define a processing (sequence of instructions) frequently used in the program
with a voluntary name to allow for it to be called out under that specific name. As a result, the need for
routine procedures can be eliminated. (For more information refer to Appendix B.)
Macro statements are offered as pseudo-instructions of the sap88 and by putting it through the sap88 it is
applied in the macro call-out portion in mnemonic form that can be assembled.
Содержание S1C88 Series
Страница 4: ......
Страница 304: ......
Страница 305: ...S1C88 Family Development Tools Quick Reference ...