Hi Douglas, > I am cross compiling on my Mac, then moving the > executable to my hard disk volume on the Apple GS. > When it gets there it is type BINARY and does not > want to execute. What changes the file type in the > directory making it executable with BRUN? If you CATALOG the file you'll see that (afaik) the start address is zero. The ProDOS "inside" GSOS needs to know the correct start address. Therefore by default the cc65 linker generates a header with that information when generating Apple2 programs. This is described in: http://www.cc65.org/snapshot-doc/apple2enh-2.html So if you don't want to use AppleCommander to transfer the program to a GSOS/ProDOS volume then you'll need to a) get rid of the cc65 header by using a custom linker configuration file b) add the correct start address to the BINARY file (or always use BRUN,A$xxxx to start it) However I could imagine very well that a SYSTEM file would be a preferable approach for you: a) A system file can be started right from the GSOS finder. b) You don't need to deal with the start address. c) You don't need to deal with the cc65 header. You "just" need to change the filetype from BINARY to SYSTEM on your GSOS/ProDOS volume (afaik there are filetype changers available to do that). To create a SYSTEM file instead of a BINARY file with cc65 use the ld65 option "-C apple2enh-system.cfg": http://www.cc65.org/snapshot-doc/apple2enh-4.html#ss4.3 > Also should I be using "-t apple2" or "-t apple2enh" > when the target is to run on GSOS 6.0.1? Use "-t apple2enh" for the Apple IIgs. If you use cl65 to compile and link in one step then provide both "-t apple2enh -C apple2enh-system.cfg" for a SYSTEM file: http://www.cc65.org/snapshot-doc/cl65-2.html Best, Oliver ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Dec 9 15:57:44 2009
This archive was generated by hypermail 2.1.8 : 2009-12-09 15:57:46 CET