### Author Topic: Listing file with MASM  (Read 194 times)

#### Gunther

• Member
• Posts: 3687
• Forgive your enemies, but never forget their names
##### Listing file with MASM
« 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
Get your facts first, and then you can distort them.

#### jj2007

• Member
• Posts: 11130
• Assembler is fun ;-)
##### Re: Listing file with MASM
« Reply #1 on: January 27, 2021, 12:38:06 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:
Code: [Select]
`.nolistinclude \masm32\include\masm32rt.inc.codestart:.listall MsgBox 0, "Check the listing", "Hello world", MB_OK.nolist exitend start`
2990687 bytes of *.lst with .nolist
6835034 bytes of *.lst without .nolist

#### Gunther

• Member
• Posts: 3687
• Forgive your enemies, but never forget their names
##### Re: Listing file with MASM
« Reply #2 on: January 27, 2021, 01:20:58 PM »
Jochen,

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

Gunther
Get your facts first, and then you can distort them.

#### hutch--

• Member
• Posts: 8116
• Mnemonic Driven API Grinder
##### Re: Listing file with MASM
« Reply #3 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.
hutch at movsd dot com
http://www.masm32.com

#### Gunther

• Member
• Posts: 3687
• Forgive your enemies, but never forget their names
##### Re: Listing file with MASM
« Reply #4 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

Gunther
Get your facts first, and then you can distort them.