Epson S5U1C63000A Computer Accessories User Manual


 
CHAPTER 4: ASSEMBLER
S5U1C63000A MANUAL EPSON 83
(S1C63 FAMILY ASSEMBLER PACKAGE)
4.8 Relocatable List File
The relocatable list file is an assembly source file that carries assembled results (offset addresses and
object codes) added to the first half of each line. It is delivered only when the start-up option (-l) is
specified.
Its file format is a text file, and the file name, <File name>.lst. (The <File name> is the same as that of the
input source file.)
The format of each line of the assembly list file is as follows:
Line No.: Address Code Source statement
Example
Assembler 63 ver x.xx Relocatable List File MAIN.LST Mon Jan 15 12:40:41 2001
1: ; main.s
2: ; AS63 test program (main routine)
3: ;
:
25:
26: .org 0x110
27: BOOT:
28: 0110 0900 ldb %ba,SP1_INIT_ADDR
29: 0111 1fc4 ldb %sp1,%ba ; set SP1
30: 0112 0900 ldb %ba,SP2_INIT_ADDR
31: 0113 1fc6 ldb %sp2,%ba ; set SP2
32: 0114 0200 calr INIT_RAM_BLK1 ; initialize RAM block 1
33: LOOP:
34: 0115 0200 calr INC_RAM_BLK1 ; increment RAM block 1
35: 0116 0000 jr LOOP ; infinity loop
36:
37:
38: ;***** RAM block *****
39:
40: .org 0x0
41: .bss
42: 0000 00 .comm RAM_BLK0, 4
43: 0004 00 .comm RAM_BLK1, 4
Content of line No.
The source line number from top of the file will be delivered.
Content of address
In the case of an absolute section, an absolute address will be delivered in hexadecimal number.
In the case of a relocatable section, a relative address will be delivered in hexadecimal number from
top of the file.
Content of code
CODE section: The instruction (machine language) codes are delivered in hexadecimal numbers. One
address corresponds with one instruction. The assembler sets the operand (immediate
data) of the code that refers to unresolved address to 0. The immediate data will be
decided by the linker.
DATA section: The 4-bit data defined by the .word pseudo-instruction are delivered. One address
corresponds with one data.
BSS section: Irrespective of the size of the secured area, 00 is always delivered here.
Only the address defined for a symbol (top address of the secured area) is delivered as
the address of the BSS section.