Hi. The NES library has this zp var defined in [nes.inc]: tickcount = $6b ;2 Which increments in the NMI interrupt routine ( called each VBlank ) I want to access it from C. I've tried this, but it doesn't work, I'm not getting it right: extern char tickcount; #pragma zpsym ("tickcount"); How's the correct way to do this? if it's possible? Does #pragma zpsym() create a var in the zp? I mean, the are 26 bytes of zp vars defined by the NEs runtime, #pragma zpsym() creates vars after that 26 bytes? I know I can access this variable with *((char*)0x6B), but would like to use a 'cleaner' way, if there is. Thanks! ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Feb 5 16:17:48 2009
This archive was generated by hypermail 2.1.8 : 2009-02-05 16:17:50 CET