Hi Sir,
I am trying to do AND operation with a binary number. I;m little bit confused, here in forums for representation of binary number in keil is 11001100Y but while I'm trying to do the same it ixs showing the error.
I'm using MDK5 the syntax i mentioned is
char a;
a|= 11001100Y;
The error I'm getting is Invalid Suffix on Integer constant.
Does any one please clarify me the issue.
Thanks & Regards Prasanna Kumari
As most as possible you should try to avoid compiler-specific extensions unless you really need them. Compiler-specific extensions makes it very hard to move your code to a different processor where you might have to switch compiler.
Either learn how to convert between binary and hexadecimal - only 16 combinations so easy to memorize or count on your fingers. Or do as suggested and get a preprocessor package that creates preprocessor symbols that represents the different binary values.