Hi, Is it possible to typecast a pointer to a variable in xdata to a bit field with 13-bits? I've tried this, char xdata i _at_ 0x300; struct { unsigned short addr : 13; unsigned char flag1 : 1; unsigned char flag2 : 1; unsigned char flag3 : 1; } const code tbl = {&i, 0, 1, 1}; and the wrong address gets put into addr in the struct. Andy
This problem was corrected in C51 V7.06G. Take a look at http://www.keil.com/support/docs/2623.htm for more information. Jon