• C array index, signed or unsigned
    Firstly, according to the C standard, is the C array index variable interpreted as a signed or unsigned integer? Secondly, what does Keil do?
  • array index type of signed int
    Hi list, i'm working with c51v750a. My problem: int array[ 0] _at_ 0x7600; //xdata unsigned char index = 0; //xdata printf("%d", &array[ index]); printf("%d", &array[(unsigned char)(index - 1)...
  • char to unsigned int
    Hi all Here is some code char prev_ch; unsigned int chksum_read; chksum_read += (WORD)prev_ch*256; chksum_read += (unsigned int)prev_ch<<8; if prev_ch has a value of 0xDB after one of of...
  • Indexing large arrays
    I want to have an array that is larger an 65535 bytes. I need to be able to address this array a byte at a time. Can I simply use a index that is defined as a long? Do I have to break the array up...
  • Using unsigned with signed int
    I have a signed integer which I have to assign to an unsigned one after addition with unsigned one. Like int16_t x = -9; uint16_t y = 11; if(x < y) { y = y+x; } How to ensure that...