• Why doesn't work
    void drawline2(char x1,char y1,char x2,char y2) { char i, deltax, deltay, numpixels; char d, dinc1, dinc2; char x, xinc1, xinc2; char y, yinc1, yinc2; deltax = abs(x2 - x1); deltay = abs...
  • NOAREG & AREG,
    Hello, I'm having trouble understanding the NOAREG, AREG & USING options. I'm also confused with R0-R7 & AR0-AR7. I've read the support files and manual but i'm still confused. May I know a) How is...
  • AREGS / NOAREGS duration?
    Hi All. To me, the manual is not entirely clear on this issue: Does #pragma NOAREGS apply only to the immediately-following function, or does it apply to all functions that follow it until a #pragma...
  • How to conditionally NOAREG a fn?
    Hi All. Imagine a function that looks like this: DEFINED_SYMBOL1 type FnName(args) DEFINED_SYMBOL2 { ...; } By appropriate definition of DEFINED_SYMBOL1 and DEFINED_SYMBOL2, I would like to end up...
  • 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...