• comparing signed and unsigned variables
    In the following code:- char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n"); The first printf isn't executed but the second is. Why is this...
  • comparing signed and unsigned variables
    In the following code:- char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n"); The first printf isn't executed but the second is. Why is this...
  • cannot compare unsigned char with hexadecimal
    Cannot compare unsigned char with hexadecimal I have a code like that. The program won’t reach if condition when SBUF is 0xAA. if (SBUF==0xaa) { AA_flag=1; config[0]=170; }
  • cannot compare unsigned char with hexadecimal
    Cannot compare unsigned char with hexadecimal I have a code like that. The program won’t reach if condition when SBUF is 0xAA. if (SBUF==0xaa) { AA_flag=1; config[0]=170; }
  • Wrong result using unsigned 32 bit calculations
    Hi, I experienced a problem with uint32 calculations. The following code calculates a wrong result. Has anyone found other problems with the unsigned long integer data type? xdata unsigned...