• bitfield index of a bit variable
    Is there a way (macro ?) to get the index of a bitfield variable in a byte ?
  • 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...
  • bits are not setting
    Can anybody tell me what is wrong in the following coding? I am unable to set P1.5 and P1.6 if I take the set memory from the variable and try to assign it to P1.5 or 6. But I am able to set P1.5 and...
  • Array indexing with unsigned int
    C251 v3.12 The C251 compiler does not handle arithmetic for array indices consistently. Consider char tt[30] ; char test ; unsigned char aaa = 27 ; unsigned int bbb = 27 ; test = tt[aaa - 20] ;...
  • 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)...