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 isuffix is appended to the relative line number, if the line comes from an
included file. An msuffix is appended to the relative line number, when the line
is generated by a macro call.
Example:
Abs. Rel. Loc. Obj. code Source line
---- ---- ------ --------- -----------
11;-----------------------
22; File: test.o
33;-----------------------
44
55 INCLUDE "macro.inc"
61i cpChar: MACRO
72i LDD \1
83i STD \2
94i 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 9000006 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.