The _at_ Keyword
The _at_ keyword allows you to specify the address for uninitialized variables in your C source files. The following example demonstrates how to locate several different variable types using the _at_ keyword.
struct link {
struct link idata *next;
char code *test;
};
struct link list idata _at_ 0x40; /* list at idata 0x40 */
char xdata text[256] _at_ 0xE000; /* array at xdata 0xE000 */
int xdata i1 _at_ 0x8000; /* int at xdata 0x8000 */
void main ( void ) {
link.next = (void *) 0;
i1 = 0x1234;
text [0] = 'a';
}