This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

carry bit

as i am doing in assembly language

 setb c
       clr  c


it work's fine but when i tried it in c

 c  = sd;
      sd = c;

the sd may be the high or low it gives error related to declaration of c, i solved it by defining

 sbit C = PSW^7;


i want to know the reasion why it need the seprate declaration.it not required in assembly so why in c please help me to solve this problem

0