Anonymous Labels for Jump Instructions (33067)



The information in this article applies to:

  • Microsoft Macro Assembler (MASM) 5.1
  • Microsoft Macro Assembler (MASM) 5.1a
  • Microsoft Macro Assembler (MASM) 6.0
  • Microsoft Macro Assembler (MASM) 6.0a
  • Microsoft Macro Assembler (MASM) 6.0b

This article was previously published under Q33067

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 @@.

Modification Type:MajorLast Reviewed:10/20/2003
Keywords:KB33067