Re: A89: Re: Re: quick question... opps, another one also... ( /label
[Prev][Next][Index][Thread]
Re: A89: Re: Re: quick question... opps, another one also... ( /label and equ )
Kaus wrote:
>
> ill just answer both questions.
>
> the /label notation is just a convention. That way, in looking at code, one
> can tell right away whether a symbol is a code segment, a data label, an
> equate, a macro, etc. /foobar is the notation for a code segment label.
>
I don't know about / but \label means a local label.
from the manual to a68k:
o Named local labels are supported. These work the same as the
local labels supported by the Metacomco assembler (nnn$) but
are formed in the same manner as normal labels, except that
they must be preceded by a backslash (\).
I'm not 100% sure how they work, but I think they are local between non-local
labels.
like this:
subroutine1:
...
\local1
...
...
\exit
...
rts
suroutine2:
...
\local1
...
...
\exit
...
rts
This is so you can reuse label-names in different subroutines (for example).
Makes code more readable, and it easier to find new label-names.
and you don't have to worry about them to collide with labels in other
subroutines.
//Olle
Follow-Ups:
References: