Do I need to always name my asm symbols with a leading underscore in order to use them from C? I export the name of an assembly function, named "zpsave", which I call from my C code. (Well, I TRIED to call it...) "Unresolved External" _zpsave. I ended up renaming the label to '_zpswap', and that worked. It took a couple hours to chase down, but what I learned is that cc65 adds an underscore to the beginning of _every_ C symbol that appears in the generated asm code. This makes sense since there is nothing in the code that would inform the compiler of what language the external function would be written in. Makes sense now, but it is counter to what I would want. Is there some trick to keep from having to add all the unders to public symbols? Thanks, // Steve ---------------------------------------------------------------------- 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 Apr 28 11:49:55 2010
This archive was generated by hypermail 2.1.8 : 2010-04-28 11:49:58 CEST