The MASM Forum

General => The Campus => Topic started by: Gunther on January 27, 2021, 12:28:30 PM

Title: Listing file with MASM
Post by: Gunther on January 27, 2021, 12:28:30 PM
Is it possible to generate a MASM listing file without the text of the *.inc files?

Gunther
Title: Re: Listing file with MASM
Post by: jj2007 on January 27, 2021, 12:38:06 PM
Quote from: Gunther on January 27, 2021, 12:28:30 PM
Is it possible to generate a MASM listing file without the text of the *.inc files?

Gunther

Check .nolist and .listall in the Masm reference:
.nolist
include \masm32\include\masm32rt.inc
.code
start:
.listall
MsgBox 0, "Check the listing", "Hello world", MB_OK
.nolist
exit
end start


2990687 bytes of *.lst with .nolist
6835034 bytes of *.lst without .nolist
Title: Re: Listing file with MASM
Post by: Gunther on January 27, 2021, 01:20:58 PM
Jochen,

thank you for the fast help.  :thumbsup: I couldn't find a reasonable command line switch.

Gunther
Title: Re: Listing file with MASM
Post by: hutch-- on January 27, 2021, 01:34:09 PM
You can also have a look at the /EP switch and even though it produces a very large listing, you get a lot of info by doing it. On the odd occasion when I use it, I cheat and do a search for something in the actual code that occurs after all the header file data.
Title: Re: Listing file with MASM
Post by: Gunther on January 27, 2021, 03:33:40 PM
Steve,

yes the listing is very large. But with your trick one can handle it. Thank you  :thumbsup:

Gunther