Bit Addressable Variables Problem

Paul
2005-01-18
2013-03-12
  • Paul
    Paul
    2005-01-18

    Can SDCC v2.4 handle bit addressable types. I can do this in Keil with the following code (see below) but how do I do this with SDCC. Thanks.

    unsigned char bdata n = 0;
    sbit n0 = n^0;

    void main(void)
    {
         n = 0x5A;
         n0 = 1;
    }