Rel.

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. See the listing below.

An i suffix is appended to the relative line number when 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.

Listing: Example listing file - Rel. column

 Abs. 
Rel.

   Loc    Obj. code   Source line
 ---- 
----

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

    1    
1

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

    2    
2

                      ; File: test.o

    3    
3

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

    4    
4 


    5    
5

                               XDEF Start

    6    
6

                      MyData:  SECTION

    7    
7

   000000             char1:   DS.B  1

    8    
8

   000001             char2:   DS.B  1

    9    
9

                               INCLUDE "macro.inc"

   10    
1i

                     cpChar:  MACRO

   11    
2i

                                LDA   \1

   12    
3i

                                STA   \2

   13    
4i

                               ENDM

   14   
10

                      CodeSec:  SECTION

   15   
11

                      Start:

   16   
12

                               cpChar char1, char2

   17    
2m

  000000 C6 xxxx    +           LDA char1

   18    
3m

  000003 C7 xxxx    +           STA char2

   19   
13

   000006 9D                   NOP

   20   
14

   000007 9D                   NOP

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

1i on absolute line number 10 denotes that the instruction cpChar: MACRO is located in an included file.

2m on absolute line number 17 denotes that the instruction LDA char1 is generated by a macro expansion.