Re: [cc65] computed labels witih .repeat

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-09-02 21:45:25
Good evening,

I've been in romania for a few days, sorry for the delay in answering emails.

On Tue, Aug 28, 2012 at 08:10:57AM +0300, thefox xofeht wrote:
> > .repeat 4, R
> > @R:  code
> >            more code
> >              etc....
> > .endrepeat
> >
> > The above does not work.  Looking for a way to do this if possible.  Thanks.
>
> Something like this:
>
> .repeat 4, R
>   .ident( .sprintf( "myLabel%d", R ) ):
>     ; Code
> .endrepeat

Yes, exactly. This will also work with cheap local labels as in the question.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Sep 2 21:45:37 2012

This archive was generated by hypermail 2.1.8 : 2012-09-02 21:45:42 CEST