Assembly @@ label question

I looked at some assembly code and found that this happens quite regularly.

@@: 
...
... ; some instructions
...
LOOP @B

Sometimes there is also @F.

I believe that @B means returning to the previous label, and @F - forward / forward label? I'm right? Does this only work with "@@" labels? If I have the label "label1" and use @B, will this work too?

Thanks.

+3
source share
1 answer

Did you understand.

They are most useful when expanding macros. If your macro contains a loop, using these built-in characters allows you to write a macro so that it can be expanded more than once. If your macro were to use a standard label, the macro extension would create duplicate labels twice.

(@B, @F) , @@.

:

+5

Source: https://habr.com/ru/post/1722944/


All Articles