https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/47504&feed=atom&action=history
Microsoft KB Archive/47504 - Revision history
2024-03-29T11:08:21Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/47504&diff=184812&oldid=prev
3155ffGd: importing KB archive
2020-07-18T16:56:45Z
<p>importing KB archive</p>
<p><b>New page</b></p><div><div id="nsbanner"><br />
<br />
<div id="bannerrow1"><br />
<br />
{|<br />
| Knowledge Base<br />
|<br />
|}<br />
<br />
<br />
</div><br />
<div id="TitleRow"><br />
<br />
= <span id="KB47504"></span>Some Instructions May Require Enabling of Instruction Set =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 47504<br />
<br />
Article Last Modified on 10/29/2003<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<br />
* Microsoft Macro Assembler 5.0<br />
* Microsoft Macro Assembler 5.1 Standard Edition<br />
* Microsoft Macro Assembler 5.1a<br />
* Microsoft Macro Assembler 6.0 Standard Edition<br />
* Microsoft Macro Assembler 6.0a<br />
* Microsoft Macro Assembler 6.0b<br />
<br />
<br />
-----<br />
<br />
<div class="notice_section"><br />
<br />
This article was previously published under Q47504<br />
<br />
</div><br />
<div class="summary_section"><br />
<br />
== SUMMARY ==<br />
<br />
Using an instruction that requires a 80186, 80286, or 80386 processor may cause the Microsoft Macro Assembler (MASM) 5.1 to generate the one of the following errors:<br />
<div class="errormessage"><br />
<br />
A2066: Must have instruction after prefix.<br />
<br />
</div><br />
<div class="errormessage"><br />
<br />
A2105: Expected: instruction, directive, or label<br />
<br />
</div><br />
and MASM 6.0 to generate the following error:<br />
<div class="errormessage"><br />
<br />
A2085: instruction or register not accepted in current CPU mode<br />
<br />
</div><br />
The error occurs because the default assembly mode is 8086. The .186, .286, .286p, .386, or .386p directive must be placed in the source code prior to any instructions that require those modes.<br /><br />
<br /><br />
In addition, MASM 6.0 supports 80486 instructions.<br />
<br />
</div><br />
<div class="moreinformation_section"><br />
<br />
== MORE INFORMATION ==<br />
<br />
The following information is taken from page 621 of the &quot;Microsoft Macro Assembler Programmer's Guide&quot; for MASM 6.0<br /><br />
<br /><br />
80186 Processor Instructions<br />
<pre class="fixed_text"> BOUND INSW OUTSW<br />
ENTER LEAVE POPA<br />
INS OUTS PUSHA<br />
INSB OUTSB PUSHW*<br />
</pre><br />
80286 Processor Instructions<br />
<pre class="fixed_text"> ARPL SIDT VERR<br />
LAR SLDT VERW<br />
LSL SMSW<br />
SGDT STR<br />
</pre><br />
80286 and 80386 Privileged-Mode Instructions<br />
<pre class="fixed_text"> CLTS LIDT LMSW<br />
LGDT LLDT LTR<br />
</pre><br />
80386 Processor Instructions<br />
<pre class="fixed_text"> BSF LSS SETNAE<br />
BSR MOVSD SETNB<br />
BT MOVSX SETNBE<br />
BTC MOVZX SETNC<br />
BTR OUTSD SETNE<br />
BTS POPAD SETNG<br />
CDQ POPFD SETNGE<br />
CMPSD PUSHAD SETNL<br />
CWDE PUSHD* SETNLE<br />
INSD PUSHFD SETNO<br />
IRETD SCASD SETNP<br />
IRETDF* SETA SETNS<br />
IRETF* SETAE SETNZ<br />
JECXZ SETB SETO<br />
LFS SETBE SETP<br />
LGS SETC SETPE<br />
LODSD SETE SETPO<br />
LOOPD* SETG SETS<br />
LOOPED* SETGE SETZ<br />
LOOPNED* SETL SHLD<br />
LOOPNZD* SETLE SHRD<br />
LOOPZD* SETNA STOSD<br />
</pre><br />
80486 Processor Instructions<br />
<pre class="fixed_text"> BSWAP* INVD* WBINVD*<br />
CMPXCHG* INVLPG* XADD*<br />
<br />
* New to MASM 6.0<br />
</pre><br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: kbinf 5.00 5.10 5.10a 6.00 6.00a 6.00b<br />
<br />
Keywords: KB47504<br />
<br />
<div class="footer"><br />
<br />
<br /><br />
<br />
<br />
-----<br />
<br />
[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]<br />
<br />
<span>© Microsoft Corporation. All rights reserved.</span><br />
<br />
<br />
</div><br />
<br />
</div></div>
3155ffGd