Panasonic PanaXSeries MN1030 Series User Manual page 45

Panasonic microcomputer user's manual
Table of Contents

Advertisement

The contents of the list file program4.lst are as follows.
Note that the symbol table is not displayed.
*** PanaX series Series MN1030 Cross Assembler ***
Loc
Object
00000000
00000000
8A00
00000002
00000002
A6
00000003
C600
00000005
60
00000006
2A01
00000008
2002
0000000a
CA00
0000000c
F0FC
0000000c
00000000
00000000
8A00
00000002
00000002
A4
00000003
C600
00000005
CA00
00000007
00000007
F0FC
This file is defined as two sections. The addresses of the starting locations of both sections is assumed
00000000.
The plus signs in lines 14 and 27 have the same meaning that they had in program3.lst--namely, that
the line contains a symbol that is not assigned a final value until linking.
program4.lst Page 1
Line
Source
1
2
3
_CODE_01
4
data_set
5
6
7
data_set_loo
p
8
+9
10
11
12
13
+14
15
16
data_set_end
17
18
19
_CODE_00
20
21
time_filler
22
23
24
time_filler_ loop
25
+26
+27
28
29
Time_filler_ end
30
31
32
Chapter 3 Introduction to Operation
global data_Set, time_filler
global data_set, time_filler
section CODE, PUBLIC, 1
mov
0, D2
cmp
D1, D2
bcc
data_set_end
mov
D0, (A0)
add
1, D2
add
2, A0
bra
data_set_loop
rts
section
CODE, PUBLIC, 1
mov
0, D2
cmp
D1, D0
bcc
time_filler_end
bra
time_filler_loop
rts
end
Assembling and Linking Multiple Sections 33

Advertisement

Table of Contents
loading

Table of Contents