I found this: http://www.cc65.org/doc/cc65-9.html I'm trying to access some variables in a CC65 C program (UIP) from 6502.. I haven't decided if I want to use inline assembly, or just use the symbol table that CC65 outputs as a reference for my code.. char url_host[64]=""; char url_page[192]=""; I want to store information into these variables (strings) webclient_datahandler(char *data, u16_t len) { static char *x; static u16_t y; x = data; y = len; printf("Webclient: got %d bytes of data.\n", y); } I want to access the data at *data, so I can display it with 6502.. it seems to be a huge pain to make it work with inline 6502. It may be easier to just get the address of: char url_host[64]=""; char url_page[192]=""; and *data, len and put them in a table: url_host equ $ABCD url_page equ $EF01 data equ $1234 len equ $1233 so I could compile UIP, extract the addresses where variables are stored at, and then just use EQU statements in my 6502 to load/store to these locations. I think this would be the best way to do it.. Rich ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Feb 26 06:54:30 2007
This archive was generated by hypermail 2.1.8 : 2007-02-26 06:54:33 CET