Chapter 11 Writing Macro Control Statements

The assembled list file is shown below.

 

 

 

 

rept.lst

Page 1

 

***

Panax Series MN1030 Cross Assembler ***

Loc

Object

Line

Source

 

 

 

 

M1

repeat

macro

p1

 

 

2

 

rept

p1

 

 

3

 

add

1, D0

 

 

4

 

endm

 

 

 

5

 

endm

 

 

 

6

;

 

 

 

 

7

_TEXT

section

CODE, PUBLIC, 1

 

 

M8

 

repeat

2

 

 

M8+

 

rept

2

 

 

8+

 

add

1, D0

 

 

8+

 

endm

 

00000000

2801

8+

 

add

1, D0

00000002

2801

8+

 

add

1, D0

 

 

M9

 

rept

3

 

 

10

 

add

1, D0

 

 

11

 

endm

 

00000004

2901

11+

 

add

1, D0

00000006

2901

11+

 

add

1, D0

00000008

2901

11+

 

add

1, D0

rept 219

Page 231
Image 231
Panasonic MN1030 user manual Assembled list file is shown below