4.38 List Directive

The MPASM LIST directive enables and controls content in the listing file.

Suggested Replacement

The PIC Assembler's LIST options directive performs many of the functions of this directive, as shown in the following table.

Table 4-2. Equivalent List Options
MPASM List OptionPurposeSuggested PIC Assembler Replacement
b=nnnSet tabs spacesNo replacement available
c=nnnSet column widthc=nnn
f=formatSet the hex file formatUse the -g driver option
freeUse free-format parserNo replacement available
fixedUse fixed-format parserNo replacement available
mm=[on|off]Print memory map in listingUse the -msummary option to print memory usage to the console
n=nnnSet lines per pagen=nnn
p=deviceSelect devicep=device
pe=typeSelect device and enable PIC18 extended instruction modeUse the -mcpu option in conjunction with the -misa option
r=radixSet source code radixUse the RADIX assembler directive
st=[on|off]Print symbol table in listingNo replacement available, but a symbol table is always produced in the listing
t=[on|off]Truncate listing linest=[on|off]
w=[0|1|2]Set message levelUse the -w option to suppress warnings
x=[on|off]Enable macro expansionx=[on|off]