Dear sir I have declared in my program BIT bit flag=0; but when linking it is giving error then if I make it xdata BYTE then it will work . but it will be losing 7 bits . Since I am using more than 10 flags in my projects .I am losing more bits. How can solve this problem. Please give some suggestion Regards girish
If you want a bit variable declare it properly. You can add the space qualifier to be complete. Try this:
void main(void) { bit data flag; flag = 0; while (!flag) { if (/* some condition */) { flag = 1; } } for (;;); }