2 relative (rel.) listing, Relative (rel.) listing, Assembler listing file – Motorola HC12 User Manual

Page 212

Advertising
background image

User’s Manual

MCUez HC12 Assembler

212

Assembler Listing File

MOTOROLA

Assembler Listing File

10.4.2 Relative (Rel.) Listing

This column contains the relative line number for each instruction. The relative
line number is the line number in the source file. For included files, the relative
line number is the line number in the included file. For macro call expansion,
the relative line number is the line number of the instruction in the macro
definition.

An

i

suffix is appended to the relative line number, if the line comes from an

included file. An

m

suffix is appended to the relative line number, when the line

is generated by a macro call.

Example:

Abs. Rel. Loc.

Obj. code Source line

---- ---- ------

--------- -----------

1

1

;-----------------------

2

2

; File: test.o

3

3

;-----------------------

4

4

5

5 INCLUDE "macro.inc"

6

1i cpChar: MACRO

7

2i LDD \1

8

3i STD \2

9

4i ENDM

10

5i

11

6 codeSec: SECTION

12

7 Start:

13

8 cpChar ch1, ch2

14

2m

000000 FC xxxx

+ LDD ch1

15

3m

000003 7C xxxx

+ STD ch2

16

9

000006 A7 NOP

17

10

000007 A7 NOP

In the previous example, the line number displayed in the column Rel.
represents the line number of the corresponding instruction in the source file.
The

1i

on absolute line number 6 denotes that the instruction

cpChar: MACRO

is located in an included file. The

2m

on absolute line

number 14 denotes that the instruction

LDD ch1

is generated by a macro

expansion.

Advertising