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 ;-)
    • MasmBasic
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]
.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

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.  :thumbsup: I couldn't find a reasonable command line switch.

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

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8116
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
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    :biggrin:  :skrewy:

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  :thumbsup:

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