alien.png TASM Docs -- Listing file format

[Previous] [Main] [Next]

Each line of source code generates one (or more) lines of output in the listing file. The fields of the output line are as follows:
·Current source file line number (4 decimal digits).  
·An optional '+' appears if this is an 'INCLUDE' file. (One '+' for each level of INCLUDE invoked).  
·Current Instruction Pointer (4 hex digits). An optional '~' follows the Instruction Pointer if the line of source code is not being assembled because of an IFDEF, IFNDEF, or IF directive.  
·Resulting code/data generated from this source line (two hex digits per byte, each byte separated by a space, up to six bytes per line).  
·The source line exactly as it appears in the source file.  

If paging is enabled (by either the '-p' option flag or the .PAGE directive) some additional fields will be inserted into the listing file every 60 lines. These fields are:
·Top of Form (form feed).  
·Assembler identifier (e.g. "TASM 6502 Assembler").  
·Initial source file name.  
·Page number.  
·Title.  

If errors are encountered, then error messages will be interspersed in the listing. TASM outputs error messages proceeding the offending line. The following example illustrates the format:

    0001   0000             label1  .equ  40h
    0002   0000             label2  .equ  44h
    0003   0000 
    0004   1000             start:  .org  1000h
    0005   1000 E6 40               inc   label1
    0006   1002 E6 44               inc   label2
    tt.asm line 0007: Label not found: (label3)
    0007   1004 EE 00 00            inc   label3
    0008   1007 4C 00 10            jmp   start
    0009   100A                     .end  
    0010   100A                            
    tasm: Number of errors = 1



TASM. Copyright (C) 1998 by Squak Valley Software.
All rights reserved.