• variables with type unsigned long problem
    Dear All: When I compile the the code with the statement: The type of short_idx is unsigned short. Row1= (short_idx * 64) >> 8 >>8; If the value of short_idx is 2048, the Row1 should...
  • long data types
    Hi all, Can anyone help me with the following problem? I'm writing a long data to a long variable but instead of passing 4 Bytes it pass 3 Bytes. I'm using C51 v6.22. long var = 0xBD3C00BD; -> var...
  • unsigned long long undefined identifier.
    I m integrating TCP/IP stack and compiling it with C166 Kiel compiler. The TCP/IP stack is from microchip. I m getting the error "GENERICTYPEDEFS.H(144): error C27: illegal type specifier" line...
  • Converting unsigned char[] to long?
    How can you access the individual bytes making up a variable of type long? What I need to do is move a 24-bit (3 bytes) unsigned char array into a long variable. An example: unsigned char a[3]; unsigned...
  • problems with unsigned long
    Hi, I'm having a problem using unsigned long. Im using the LARGE memory model. unsigned long largeWait; largeWait = 10000; while(largeWait--); when I run this on my chip I never exit the...