At 04:52 PM 4/18/2005, chromatic wrote:
On Mon, 2005-04-18 at 14:44 +0200, Leopold Toetsch wrote:
> Yep. As a first step, I'd redefine this to be C<.label>:
>
> .macro SpinForever (Count)
> .label $LOOP: dec .COUNT # ".label $LOOP" defines a local label.
> branch .$LOOP # Jump to said label.
> .endm
Can you only use .label inside of macros? (I don't know how useful it
is outside of macros, but it's a question.)
Currently yes (assuming you made .local = .label) because the macros are
handled and expanded in the lexer only before the parser gets hold of it,
so IF my memory serves, there is no token in the parser for anything inside
a macro.
I tried to yank macros out once and there was much screaming and wailing.
:)
-Melvin