Re: A89: Re: Re: quick question... opps, another one also... ( /label a
[Prev][Next][Index][Thread]
Re: A89: Re: Re: quick question... opps, another one also... ( /label and equ )
ah yes. you're right olle
Sorry bout that.
thye are label symbols, as i said, but they are volatile within the
assembler. they are reset after each main label so that you can use them
over and over.
Sorry for the confusion.
--kaus
----- Original Message -----
From: "Olle Hedman" <oh@hem.passagen.se>
To: <assembly-89@lists.ticalc.org>
Sent: Friday, April 21, 2000 2:01 AM
Subject: 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.
>
> file://Olle
>
References: