From: Bernhard H. <ber...@be...> - 2003-03-29 13:05:58
|
> xdata unsigned char * data p; > > I need the pointer to physically reside in RAM because I need to change it. > It will be used for system log storage. > > I should then be able to write using something like > *p=0xFF; > and read like > t=*p; > as in standard C, correct? > > Will this work? If not, how do you recommend I implement this? It's perfect! > The NVRAM I am using is a dallas chip that also has a RTC (Real Time Clock) > on it. I will have to access the time locations on the chip also, which are > access identially to any other RAM location. Can I use a declaration like > this? : > > xdata at 0x7FFF unsigned char YEAR ; > > These make sense to me, but I would like to pass it by someone first :) Everything's ok. If don't want YEAR appearing in the map file, you could use: #define YEAR (*(xdata unsigned char *) 0x7fff) Bernhard |