DOCERR: New Command-Line Option for MASM 5.1: /LA (32832)



The information in this article applies to:

  • Microsoft Macro Assembler (MASM) 5.1

This article was previously published under Q32832

SUMMARY

Version 5.10 of the Microsoft Macro Assembler (MASM) includes a new command-line option, /LA, which adds all code generated by the assembler to the listing file.

This option was omitted from the Microsoft Macro Assembler 5.1 Reference, but is given as an option by the command masm /help.

MORE INFORMATION

The command-line option /LA displays the results of the simplified segment directives and code generated by the high-level language support features. The following is a sample source file with simplified segment directives and a fragment of the listing file created by using /LA:

Sample Code

; Assemble options needed: /LA

   .model small
   .data
   .code
   end

Listing file fragment

   .model small
   assume cs:@code,ds:@data,ss:@data
   .data
   _DATA segment 'DATA'
   .code
   @CurSeg ends
   _TEXT segment  'CODE'
   end
   @CurSeg ends
				

Modification Type:MajorLast Reviewed:10/22/2003
Keywords:KB32832