On Fri, 26 Sep 2003 04:57:27 GMT, "Shawn B." wrote: >Greetings, > >I have downloaded the latest cc65 (2.2.9.2 version). In it is an apple zip >file I can seperately download (inded, I have). There is a lib (which >looking inside it, appears to have lots of methods to call) but the header >has no function definitions. My question is, is something missing? No, the .lib file pretty much implements the C run-time library. If you go to the CC65 sources, you can get the source code to the apple2 library. If I recall, it's all assembler. >Also, an unrelated question to Apple but related to cc65, I have some >unofficial SDKs for the original NES, but it requires extensive use of the >.ORG directive and even heavier use for specifying code in aux banks (there >are 4 banks with which I can place code), how easily can I set this compiler >up to handle that?? (NES uses 6502). Otherwise I'm stuck having to use >Assembly but I'd like to use C. Take a look at using apple2.cfg. In one project I have here, it looks like this: MEMORY { ZP: start = $00, size = $1A, type = rw; RAM: start = $800, size = $8E00, file = %O; } SEGMENTS { CODE: load = RAM, type = ro; RODATA: load = RAM, type = ro; DATA: load = RAM, type = rw; BSS: load = RAM, type = bss, define = yes; ZEROPAGE: load = ZP, type = zp; } FEATURES { CONDES: segment = RODATA, type = constructor, label = __CONSTRUCTOR_TABLE__, count = __CONSTRUCTOR_COUNT__; CONDES: segment = RODATA, type = destructor, label = __DESTRUCTOR_TABLE__, count = __DESTRUCTOR_COUNT__; } SYMBOLS { __STACKSIZE__ = $800; # 2K stack } As you can see, the RAM: start = $800 can be modified. But in general, the CC65 C compiler generates relocatable code. >One more thing, does cc65 support the 16-bit IIgs? (that means it would >also support the SuperNES because they use the same processor. No, I am quite sure it does not support 65816 code generation. > >Thanks, >Shawn > Cheers! // CHRIS