• Complement of Char
    Is any direct function is available for the complement of the char variable
  • single bit twos complement
    what do you expect the result to be? typedef struct { signed int bit:1; } T_oddity; T_oddity oddity; int foobar( int arg ) { oddity.bit = arg; return oddity.bit; } void foochocolate ( void...
  • XC 167: 2s complement fractional format
    Hello, I'm trying to use 2s complement fractional format in XC 167 a and I have following problem with multiplication: /*2s complement fractional format - multiplication test*/ #include <XC167.h>...
  • Enums and Ints
    Bug, or just weird subtlety of ANSI C when it comes to enums and ints? typedef enum { es16_1, es16_2, es16_3, es16_Force16 = 0x7fff } EnumS16; typedef enum { eu16_1, eu16_2, eu16_3, eu16_Force16...
  • What's the different (xdata int) and (int xdata)
    Dear All: Could any one tell me What's the different between (xdata int p) and (int xdata p)? Thanks