• Why doesn't the NOAREGS works?
    #pragma NOAREGS char noaregfunc(char i) using 1 { return i+1; } void main(void) { char ch = noaregfunc(2); } Source code: C_STARTUP: C:0x0000 020011 LJMP C:0011 2: char noaregfunc (char i) using...
  • Why the following bitwise & doesn't work?
    unsigned char tp; unsigned char volatile pdata HOSTCFG2 _at_ 0x0020; // HOSTCFG2=0x40 at this point tp=HOSTCFG2 & 0x40; //!!! tp is 0x00 instead of 0x40 which is expected //Corresponding Disassembly...
  • Why C's simulator doesn't work?
    Dear all: I'm write a simply program to test C for NXP. I only open timer 1 to use,Then i set a breakpoint in the interrupt, But the interrupt never be break,I don't why? Can anyone tell me why...
  • C51: variables in XDATA - why doesn't that work?
    Hi everybody, I would like to access a variable in XDATA from different .c source files. Obviously, that doesn't work the way i'm doing it, but what am I doing wrong? Here is a tiny code...
  • Why this shift doesn't run?
    Hi, I've the following question about this code fragment: ... char BuffRX xdata UCHAR BuffRX[10]; idata unsigned short ValCRCcomp; idata unsigned short ValCRCappo; idata unsigned short ValCRCappo2;...