i m working in C using Keil 3.55a
how can i define a one bit variable
and how can i compare two bits using if
how can i set or clear Bit
and how can i get the compliment of one byte or one bit, like in ASM CPL A or CPL c
So you've decided to give up on Assembler?
http://www.keil.com/forum/18966/
So now you need to learn the 'C' programming language, and the specific extensions for the 8051 provided by Keil's C51 implementation.
'C' is a very widely-used and long-established languages - there's a vast wealth of books, sites, and training courses available to help you to learn the language; eg,
http://www.keil.com/books/
http://www.keil.com/events/
publications.gbdirect.co.uk/.../
www.eskimo.com/.../
For Details of Keil products - including full manuals - see: http://www.keil.com/support/