Microsoft KB Archive/40192

= Error A2105 with PUSHA and POPA Instructions =

Article ID: 40192

Article Last Modified on 10/17/2003

-

APPLIES TO


 * Microsoft Macro Assembler 5.1 Standard Edition

-



This article was previously published under Q40192



SUMMARY
MASM generates the following error message if the PUSHA or POPA instructions are used without a prior .186, .286, or .386 directive:

A2105: Expected: instruction, directive, or label

This error does not clearly indicate exactly what the problem is. By default, the Macro Assembler generates code for the 8086 processor, for which these instructions have not been implemented.

Page 302 of the &quot;Macro Assembler 5.1 Programmer's Guide&quot; states that these instructions are implemented only for the 80186, 80286, and 80386 processors.

If you have an 8086-based computer, you will have to push and pop the registers individually, using PUSH and POP. If you have a 80186, 80286, or 80386-based computer, add the appropriate directive to the code.

Additional query words: kbinf 5.10

Keywords: KB40192

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.