I tried to put the source filename into the output file: > ca65 -D SOURCE_FILE=myprog.asm ... >.ifdef SOURCE_FILE > prog_name: .asciiz SOURCE_FILE > .endif but it seems ca65 doesn't allow string symbols on the command line. :( Is there any easy way around this? Perhaps some predefined symbol for the file name, like __FILE__ in some C compilers? 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 ---------------------------------------------------------------------- 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 17:18:23 2012
This archive was generated by hypermail 2.1.8 : 2012-06-12 17:18:26 CEST