FIX: MASM 5.1/5.1a Will Not Allow .STACK to Exceed 32KLast reviewed: September 16, 1997Article ID: Q74664 |
5.10 5.10a | 5.10 5.10a
MS-DOS | OS/2kbtool kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSIn the Microsoft Macro Assembler (MASM) versions 5.1 and 5.1a, the following error message may be generated if a stack segment is declared larger than 32K:
error A2102: Segment near (or at) 64K limitThis error will only occur if you are using the .STACK directive to generate the stack segment.
RESOLUTIONYou can work around this by either of the following:
STATUSMicrosoft has confirmed this to be a problem in MASM versions 5.1 and 5.1a. This problem was corrected in MASM version 6.0.
MORE INFORMATION
Sample Code; Assemble options needed: none
.MODEL small ; Use any memory model .STACK 8000h ; Open and allocate STACK segment ; STACK segment automatically closed END |
Additional reference words: 5.10 5.10a 6.00 buglist5.10 buglist5.10a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |