LMAPGAPC

LMAPGAPC - 141 APPENDIX A A listing file shows precisely...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
141 APPENDIX A A listing file shows precisely how the assembler translates your source file into machine code. The listing documents the assembler’s assumptions, memory allocations, and optimizations. MASM creates an assembly listing of your source file whenever you do one of the following: u Select the appropriate option in PWB. u Use one of the related source code directives. u Specify the /Fl option on the MASM command line. \z "PGAPCW.DOC-1001" The assembly listing contains both the statements in the source file and the binary code (if any) generated for each statement. The listing also shows the names and values of all labels, variables, and symbols in your file. The assembler creates tables for macros, structures, unions, records, segments, groups, and other symbols, and places the tables at the end of the assembly listing. Only the types of symbols encountered in the program are included. For example, if your program has no macros, the symbol table does not have a macros section. Generating Listing Files \z "PGAPCW.DOC-1002" \z "PGAPCW.DOC-1003" \z "PGAPCW.DOC-1004" To generate a listing file from within PWB, follow these steps: 1. From the Options menu, choose MASM Options. \z "PGAPCW.DOC-1005" 2. In the MASM Options dialog box, choose Set Debug or Release Options. The dialog box for Set Debug or Release Options lists the choices summarized in Table C.1. This table also shows the equivalent source code directives and command-line options. Table C.1 Options for Generating or Modifying Listing Files To generate this In source From command Filename: 82a321c2531488fcb56ff0f7dea1637932e3d23a.DOC Project: Template: Author: Last Saved By: Revision #: 0 Page: 141 of 14 Printed:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Programmer’s Guide information: In PWB 1 , select: code, enter: line, enter: Default listing includes all assembled lines Generate Listing File .LIST (default) /Fl Turn off all source listings (overrides all listing directives) Generate Listing File (turn off) .NOLIST (synonym = .SFCOND ) List all source lines, including false conditionals and generated code Include All Source Lines .LISTALL /Fl /Sa Show instruction timings List Instruction Timings /Fl /Sc Show assembler- generated code List Generated Instructions /Fl /Sg Include false conditionals 2 List False Conditionals .LISTIF (synonym = .LFCOND ) /Fl /Sx Suppress listing of any subsequent conditional blocks List False Conditionals (turn off) .NOLISTIF (synonym = .SFCOND ) Filename: 82a321c2531488fcb56ff0f7dea1637932e3d23a.DOC Project: Template: Author: Last Saved By: Revision #: 0 Page: 142 of 14 Printed:
Background image of page 2
Appendix C Generating and Reading Assembly Listings 143 whose condition is false Toggle between .LISTIF and .NOLISTIF .TFCOND Suppress symbol table generation Generate Symbol Table (turn off the default) /Fl /Sn List all processed macro statements .LISTMACROALL (synonym = .LALL ) List only instructions, data, and segment directives in macros .LISTMACRO (default)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 14

LMAPGAPC - 141 APPENDIX A A listing file shows precisely...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online