Chapter 3 Introduction to Operation

The contents of the list file program4.lst are as follows.

Note that the symbol table is not displayed.

 

 

 

program4.lst Page 1

 

Loc

*** PanaX series Series MN1030 Cross Assembler ***

Object

Line

Source

global

data_Set, time_filler

 

 

1

 

 

 

2

_CODE_01

global

data_set, time_filler

00000000

 

3

 

section CODE, PUBLIC, 1

8A00

4

data_set

mov

0, D2

00000000

5

 

00000002

 

6

data_set_loo

 

 

 

7

 

 

00000002

A6

8

p

cmp

D1, D2

 

00000003

C600

+9

 

bcc

data_set_end

00000005

60

10

 

mov

D0, (A0)

11

 

00000006

2A01

12

 

add

1, D2

00000008

2002

13

 

add

2, A0

0000000a

CA00

+14

 

bra

data_set_loop

 

 

15

data_set_end

 

 

0000000c

F0FC

16

rts

 

17

 

 

0000000c

 

18

_CODE_00

 

CODE, PUBLIC, 1

 

 

19

section

00000000

 

20

time_filler

 

 

8A00

21

mov

0, D2

00000000

22

 

00000002

 

23

time_filler_ loop

 

A4

24

D1, D0

00000002

25

 

cmp

00000003

C600

+26

 

bcc

time_filler_end

00000005

CA00

+27

 

bra

time_filler_loop

00000007

 

28

Time_filler_ end

 

F0FC

29

 

00000007

30

 

rts

 

 

 

31

 

end

 

 

 

32

 

 

 

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.

Assembling and Linking Multiple Sections 33

Page 45
Image 45
Panasonic MN1030 user manual Contents of the list file program4.lst are as follows