Chapter 14 Reading List Files

Source statement (Source)

The source statements of the source file are output as is.

If the Lm option is added when the assembler is invoked, output of source statements resulting from macro expansion will be suppressed.

Below are example of source statement.

 

 

 

listspl.lst

 

Page 1

Loc

*** PanaX Series MN1030 Cross Assembler ***

Object

Line

Source

 

“outlist.h”

 

 

1

#include

equ

 

 

.1

data

0x12345678

 

 

2

 

global

move

 

 

3

 

 

 

4

load

macro

 

 

 

M5

(A0), D0

 

 

6

 

mov

 

 

7

 

mov

D0, (A1)

 

 

8

 

add

4, A0

 

 

9

 

add

4, A1

 

 

10

 

endm

 

 

 

11

_TEXT

section

CODE, PUBLIC, 1

00000000

 

12

 

13

main

VERSION

 

 

 

14

#ifdef

data, D0

 

 

15x

 

mov

 

 

16x

#else

mov

D0, (A0)

 

 

17

load

 

00000000

70

M18

 

(A0), D0

18+

 

mov

00000001

61

18+

 

mov

D0, (A1)

00000002

2004

18+

 

add

4, A0

00000004

2104

18+

 

add

4, A1

00000006

70

19

 

mov

(A0), D0

00000007

61

20

 

mov

D0, (A1)

00000008

2004

21

 

add

4, A0

0000000a

2104

22

#endif

add

4, A1

0000000c

FCFF0000000

23

calls

move

+24

 

 

0

25

 

end

 

 

 

 

 

*** Symbol Table ***

 

listspl.lst

Page 2

 

 

 

 

 

12345678

A

data

 

 

 

00000000

-U

move

 

 

 

T

main

 

 

 

 

 

 

 

 

270 Reading List Files

Page 282
Image 282
Panasonic MN1030 user manual Source statement Source, Version