On Tuesday 05 October 2004 08:09, Karri Kaksonen wrote: > Hi, > > I get the code to work but ld65 complains. > > I define a storage for my score pointer in test.s like: > .export _abc_score_ptr0 > .zeropage > _abc_score_ptr0: .res 2 > > Then I want to monitor things in my myprog.c like: > extern char *abc_score_ptr0[]; > > int main(void) > { > char *tmp; > tmp = *abc_score_ptr0; > } > > At compile time I get a warning: > cl65 -t lynx -C lynx.cfg lynxexehdr.o myprog.c test.s > ld65: Warning: Address size mismatch for `_abc_score_ptr0', export in > test.s(1), import in myprog.s(12) > > The reason I use zero page is that my driver code in assembler uses > the location as: > lda (_abc_score_ptr0),y > > -- > Thanks for any comments, looks great, except you should probably use .exportzp :) gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Oct 5 08:10:51 2004
This archive was generated by hypermail 2.1.8 : 2004-10-05 08:11:00 CEST