The MASM Forum

General => The Campus => Topic started by: sukubba on August 14, 2014, 02:21:54 PM

Title: MASM 32 for Win32
Post by: sukubba on August 14, 2014, 02:21:54 PM
Hi guys and gals.
Please explain the assignment of symbols "@@" in the code:


@@lPar:      dword
       mov       eax,[@@msg]
       cmp       eax,WM_COMMAND
       je       @@command
       cmp       eax,WM_DESTROY
       jne       @@default
       call       PostQuitMessage,       0
       xor       eax,eax
       jmp       @@ret
Title: Re: MASM 32 for Win32
Post by: hutch-- on August 14, 2014, 05:34:54 PM
In this code the prefixed @@ is just part of the label name. In MASM you have what are called anonymous labels that are written as "@@:" which take a special reference "jmp @B" to jump to the previous @@: label or "jmp @F" to jump to the next @@: label.
Title: Re: MASM 32 for Win32
Post by: sukubba on August 14, 2014, 07:13:54 PM
Thank you