Re: [cc65] Macros in ca65

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2011-12-06 16:30:05
Hi!

On Tue, Dec 06, 2011 at 01:33:57PM +0100, Björn Spruck wrote:
> now my question: any idea how this can be done in the simplest way in ca65?

I'm not at home so I cannot try, but my first step would be to solve it in a
similar way as the old assembler did. Use a counter to generate the labels.
Anything else should be straight forward, provided that there is no nesting.

> remark: doing this with scopes or procs will not work if there is any
> other label between IF and ENDIF which should be accessible from
> outside, right?

Labels within scopes are accessible from the outside (at least in the
development version - don't remember about the stable one).

        .proc   foo
        bar:
        .endproc

        jmp     foo::bar

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 Tue Dec 6 16:30:20 2011

This archive was generated by hypermail 2.1.8 : 2011-12-06 16:30:22 CET