Try using the .segment pseudo-op. Everything that follows will be put in that segment. Multiple occurences will put the code and data in each occurence in the given segment. ________________________________ From: Oliver Schmidt <ol.sc@web.de> To: cc65@musoftware.de Sent: Thursday, January 26, 2012 11:03 AM Subject: [cc65] ca65: Setting segment name from cmdline? Hi, Given the --code-name option of cc65 I was somehow thinking the same would be available for ca65. However this isn't the case. Then I thought I could use the -D option toe "somehow" define the name and refer in the source to it with the .segment directive. But this was obviously wrong too. So my question is: Is there a way to define the name of the segment for i.e. code on the ca65 cmdline? In case you wonder what I'm trying to do: I want to place the same code several times in the output file. Just the run address differs for each variant. My idea was to setup several segments in my linker config and run ca65 several times on the same source but different cmdlines in order to produce several .o files. Thanks in advance for your help, Oliver ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Jan 26 18:17:30 2012
This archive was generated by hypermail 2.1.8 : 2012-01-26 18:17:33 CET