• Bitfield
    Hello to everyone, i have this example: union { struct { unsigned char x:4; unsigned char y:4; } nibble; unsigned char abyte; } value; I'am not sure how to acces to the byte and the...
  • Bitfield Array
    Hello to everyone, I want to my ARM7 to access a (const)bitfield array, but as i'am absolute beginner not sure about C-syntax. My textbook don't includes Bitfield-Array. Hope someone takes a look at...
  • Initializing a bitfield
    I get warning C141 'struct' to many initializer. struct { unsigned a:1; unsigned b:1; unsigned c:1; unsigned d:1; unsigned e:1; unsigned f:1; unsigned g:1; unsigned h:1; } blabla={1,1,1,0...
  • use of bit as array index fails? (if bit is set)
    Hi, I suspect I have hit upon a bug in C51 V6. When a bit variable is used as an index into array of int or long int, it fails. Actually, it fails only if the bit is 1; otherwise it works ok. I...
  • 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] ;...