Tachdaun wrote: > 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"); I believe tickcount is a 2 byte integer not a single byte char. You are likely only retrieving the least significant byte with your char reference. ---------------------------------------------------------------------- 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 20:46:47 2009
This archive was generated by hypermail 2.1.8 : 2009-02-05 20:46:50 CET