FIX: MASM 5.1 Generates Incorrect Listing for RET Statement (39374)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
This article was previously published under Q39374 SYMPTOMS
When the /LA option is used to show the instructions generated for the RET
instruction, where the RET statment has a label on the same line and is
contained in a PROC that has a USES clause, and/or parameters, the listing
shows the original source line, including the label, after the POP
instructions which are inserted by MASM. Running the program under
CodeView, checking the object code generated for jumps, and checking the
value of the label on the RET in the symbol listing at the end of the
program all confirm that MASM is producing correct code. It is just the
listing that is incorrect.
RESOLUTION
To produce a correct listing, change the code so that the label and the RET
are not on the same line of source. In other words, change
JUMPHERE: RET
to the following:
and the statement will appear in the correct location in the listing file.
STATUS
Microsoft has confirmed this to be a problem in MASM version 5.10. This
problem was corrected in MASM version 6.00.
Modification Type: | Minor | Last Reviewed: | 11/15/2003 |
---|
Keywords: | kbfix KB39374 |
---|
|