I am trying to come up with a method for defining absolute (MMIO) addresses once in my universal .h file. DATAACT id defined in one .c file only UX* is xdata unsigned char My attempt:
#ifdef DATACT #define UXRG(name,addr) UX8 name _at_ addr; #else #define UXRG(name,addr) extern UX8 name; #endif used as UXRG (XRleds, 0xff00);
(If you didn't actually want suggestions for alternatives, why ask for them?) I am not asking for "alternatives", I am asking "how do I expand my (and other peoples) method to include _at_ xdata" Erik