Anonymous Labels for Jump Instructions

Last reviewed: January 23, 1995
Article ID: Q33067
The information in this article applies to:
  • Microsoft Macro Assembler for MS-DOS, versions 5.1, 5.1a, 6.0, 6.0a, and 6.0b
  • Microsoft Macro Assembler for OS/2, versions 5.1, 5.1a, 6.0, 6.0a, and 6.0b

SUMMARY

The Microsoft Macro Assembler (MASM) 5.1 and later provides a way to generate anonymous labels for jump instructions. To define the local label to be jumped to, use two at signs (@@) followed by a colon (:). The operand used in the jump instruction can be one of the following

   @B (back)
   @F (forward)

The @B will jump to the previous local label and the @F will jump to the next local label.

MORE INFORMATION

The fragment below illustrates this feature:

    cmp ax,cx
    jge @F
    .
    .
    .
@@:
    .
    .
    .
    jle @B

The jump to @F will jump to @@: and the jump to @B will jump back to the @@.


Additional reference words: kbinf 5.10 5.10a 6.00 6.00a 6.00b jmp
KBCategory: kbprg
KBSubCategory: MASMLngIss


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 23, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.