Hi, I want to know the address of a bit variable. For example:
bit gBit; func() { printf("%d", &gBit); }
If you're so sure of your understanding, why don't you just go ahead an look into C_INITSEG to check what the compiler actually does? Or tell me the opcode of the machine instruction accessing a bit indirectly?
If I read this correctly, the OP is of the school where it is taught "If you use a global address, you will die" Access to a bit in main and an interrupt can be accomplished simply by making the bit declaration global. Erik