Disassembling Output - Epson S5U1C63000A User Manual

Cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 7: DISASSEMBLER

7.5 Disassembling Output

The data/code mnemonics are restored from the target code. As for the branch instructions, a label will
be automatically generated such as "CODEx:" where "x" denotes a hexadecimal number string. Other
reference symbols will also be generated as "LABELx", "IOx" and "RAMx". The ".org" pseudo-instruction
is used to specify the starting location of each code block.
The following shows examples of disassembled sources:
Sample outputs
Absolute list file "test.als"
Linker 63 ver x.xx Absolute list file "TEST.ALS" Mom Jan 15 12:40:41 2001
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
0000
11:
0001
12:
0002
13:
0003
14:
0004
15:
0005
16:
0006
17:
18:
19:
20:
21:
22:
0007
23:
0008
24:
0009
25:
000a
26:
000b
27:
000c
28:
000d
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
0100
52:
0101
53:
0102
54:
114
; sub.s
; AS63 test program (subroutine)
.global RAM_BLK1
;***** RAM block 1 initialize *****
.global INIT_RAM_BLK1
INIT_RAM_BLK1:
0800
ldb
0a04
ldb
1e90
ld
1e90
ld
1e90
ld
1e80
ld
1ff8
ret
;***** RAM block 1 increment *****
.global INC_RAM_BLK1
INC_RAM_BLK1:
0800
ldb
0a04
ldb
1911
add
1990
adc
1990
adc
1980
adc
1ff8
ret
; main.s
; AS63 test program (main routine)
;
;***** INITIAL SP1 & SP2 ADDRESS DEFINITION *****
#ifdef SMALL_RAM
.set SP1_INIT_ADDR 0xb
#else
.set SP1_INIT_ADDR 0x4b
#endif
.set SP2_INIT_ADDR 0x1f
;***** NMI & BOOT, LOOP *****
.global INIT_RAM_BLK1
.global INC_RAM_BLK1
.org
NMI:
08fe
(+)
ldb
02fe
calr
1ff9
reti
%ext,RAM_BLK1@h
%xl,RAM_BLK1@l
[%x]+,0x0
[%x]+,0x0
[%x]+,0x0
[%x],0x0
%ext,RAM_BLK1@h
%xl,RAM_BLK1@l
[%x]+,1
[%x]+,0
[%x]+,0
[%x],0
0x100
ext,fe
INIT_RAM_BLK1
EPSON
(S1C63 FAMILY ASSEMBLER PACKAGE)
;set RAM_BLK1 address to x
;set 0x0000 to RAM_BLK1
;set RAM_BLK1 address to x
; increment 16bit value
;SP1 init addr = 0x2c
;SP1 init addr = 0x12c
;SP2 init addr = 0x1f
; subroutine in sub.s
; subroutine in sub.s
; initialize RAM block 1
; in NMI(watchdog timer)
S5U1C63000A MANUAL

Advertisement

Table of Contents
loading

Table of Contents