We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 (;;); }