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

CPL bit in Keil C?

I use Keil C and my hardware need
CPL P3.0 command
No problem in asm, but i need it in C.

b1 = P3^0;
b1^=1;
not work :( after compiling i have
MOV c,b1
CPL c
MOV b1,c
but i need exactly one command "CPL b1"
Anyone can help?

0