• A bug in C51?
    Hi, I encountered the following phenomena during my work: I dont know if its supposed to be this way but I'm sure it made me a lot of trouble. I had a working program and I built a bootloader for...
  • Is this a C51 bug?
    struct tag { char a:7; char b:1; }; unsigned char foo(void) { struct tag test; test.b = 1; return test.b; } void main(void) { char dat; if(foo() == 1)// ***foo return 0x80 not 0x01 { dat...
  • Is this a C51 / uvision bug?
    Hi all Below is the result of some debugging. I have isolated some code from a bigger project and have put it into a stand-alone project. I basically don't understand why I can do right bit-shifting...
  • C51: Is this a compiler bug ?
    ... or a misunderstanding on my part ? From string "\x0CTUV", the compiler generates 0x0C 0x55 0x56 0x57 0x00 From string "\x0CABC", the compiler generates 0xCA 0x42 0x43 0x00 ... rather than...
  • A bug in C51 code generation
    I think Keil C51 version 8 has a bug in the code generation. The following source shows the bug: typedef unsigned char BYTE; typedef unsigned short WORD; #define FIXED_VAULE 64 #define MAKEWORD...