Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what are the contents of a .lst file generated by masm program?

Tags:

assembly

masm

while running the assembly language programs using masm .lst, files are generated.
What are the exact contents of this .lst files and why is this conversion essential?

like image 961
funtime Avatar asked May 08 '12 17:05

funtime


People also ask

What are .lst files?

A file with an . lst extension is most likely a text file that contains a list of data. LST files are used by many different programs, including Microsoft Visual Studio and various text editors. A typical LST file contains a list of information, separated by line breaks.

What is .LST file in C?

A list file (. LST) contains a block of C code [commented out by a sequence of period characters] followed by the assembly code for that block.

What is a Masm listing?

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: Select the appropriate option in PWB.

How do you create a listing file in assembly language?

Go to Property of Project : ( note platform for correct in first line - for me: WIN32 ) Go to Microsoft Macro Assembler - Listing file - set Yes(/Sg) Enable Assembly Generated Code Listing and set $(ProjectName). lst in Assembled Code Listing File.


1 Answers

Being another dinosaur, I think we should promote Hans Passant's comment into an answer.

Back in the olden days, assembly programmers didn't have very good debuggers or an operating system that permitted debugging and code viewing at the same time. So a listing file that was formatted for a printer was a good way to have something to look at while troubleshooting code. Paper consumption was stupendous btw. – Hans Passant May 8 at 17:28

Programming using paper and pencil is a lost art. Not missed by many.

like image 148
Bo Persson Avatar answered Oct 12 '22 08:10

Bo Persson