FIX: Incorrect RET Generated for PROC when EPILOGUE:NONE (102432)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
- Microsoft Macro Assembler (MASM) 6.1
- Microsoft Macro Assembler (MASM) 6.1a
This article was previously published under Q102432 SYMPTOMS
When Microsoft Macro Assembler (MASM) processes source code for an
application, it may generate the incorrect form for a RET instruction
in a PROC. Specifically, the assembler generates a RET 4 instruction
instead of a RET instruction when the source code contains a RET
instruction.
CAUSE
The source code uses the OPTION EPILOGUE statement multiple times to
set the EPILOGUE macro to NONE.
RESOLUTION
Modify the source code to specify RET 0. The assembler translates this
expression into a RET instruction.
STATUS
Microsoft has confirmed this to be a problem in MASM versions 6.0,
6.0a, 6.0b, 6.1, and 6.1a. This problem was corrected in MASM for
MS-DOS version 6.11.
Modification Type: | Minor | Last Reviewed: | 10/14/2003 |
---|
Keywords: | kbfix KB102432 |
---|
|