Re: [cc65] ca65: insert source file name

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-06-12 20:34:11
On Tue, Jun 12, 2012 at 05:18:08PM +0200, Martin Strand wrote:
> but it seems ca65 doesn't allow string symbols on the command line. :(

In general, symbols can only be integers. That's a pity but part of ca65s
heritage.

> Is there any easy way around this?

No, sorry.

> The best I could come up with is something like:
>
> >echo "myprog.asm" > filename.bin
> >ca65 -D INCLUDE_SOURCE_NAME ...
> >
> >.ifdef SOURCE_FILE
> >  prog_name: .incbin "filename.bin"
> >.endif

Yes, I would have come up with something similar.

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 Jun 12 20:34:21 2012

This archive was generated by hypermail 2.1.8 : 2012-06-12 20:34:26 CEST