Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/06/09 01:14
Read: times


 
Msg Score: +4
 +4 Good Answer/Helpful
#165086 - ^ is the 'C' exclusive-OR operator
Responding to: ???'s previous message
Mohamed Asfour said:
if(P0^0==0)

In that context, the '^' symbol has its standard 'C' meaning as the exclusive-OR operator

Only when used in an sbit definition in Keil C51 does it have another meaning...

http://www.keil.com/support/m...e_sbit.htm
http://www.keil.com/support/m...ddrobj.htm

This is a common trap for the unwary - it does seem like a particularly poor choice on Keil's part.

:-(

BTW: use the 'Insert Program Code' button to properly format your source code;
See also: http://www.8052.com/faqs/120199


List of 4 messages in thread
TopicAuthorDate
why there is a problem with if staments            01/01/70 00:00      
   ^ is the 'C' exclusive-OR operator            01/01/70 00:00      
   thank you            01/01/70 00:00      
      you're welcome            01/01/70 00:00      

Back to Subject List