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