• Problem with Shift-Operator
    Hi, I have a Problem with the Shift-Operator >> within my C-Code. I'm using PK166 V4.2 The following code should set the Variable n to 0. void main() { unsigned char n; unsigned char p; /...
  • Problems with binary operator
    My keil version 4.0a Quick example: #include<lpc23xx.h> #include <math.h> #define RS 0x10000000; #define E 0x80000000; int main(void) { IODIR1 = RS + E ;} Why it doesn't work, it...
  • Problem with Shift-Operator
    Hi, I have a Problem with the Shift-Operator >> within my C-Code. I'm using PK166 V4.2 The following code should set the Variable n to 0. void main() { unsigned char n; unsigned char p; /...
  • Problems with binary operator
    My keil version 4.0a Quick example: #include<lpc23xx.h> #include <math.h> #define RS 0x10000000; #define E 0x80000000; int main(void) { IODIR1 = RS + E ;} Why it doesn't work, it...
  • Problem with Assignment Operator Modulo
    According to K&R: x *= y + 1 is equivalent to: x = x * ( y + 1 ) And other assignment operators including modulo should be handled similarly. However, the following function does not...