Microsoft KB Archive/26707

= LOOP Can Use ECX in 16-bit Segment, CX in 32-bit Segment =

Article ID: 26707

Article Last Modified on 10/17/2003

-

APPLIES TO


 * Microsoft Macro Assembler 5.0
 * Microsoft Macro Assembler 5.1 Standard Edition

-



This article was previously published under Q26707



SUMMARY
You can use a cast override to change the operand size for the LOOP instruction. For example, use &quot;LOOP dword ptr alabel&quot;, so that in a 16-bit segment, ECX will be used instead of CX. If you use a WORD override in a 32-bit segment, CX will be used instead of ECX.

Additional query words: 5.00 5.10

Keywords: KB26707

-

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

© Microsoft Corporation. All rights reserved.