• Recursive functions & XRAM variables
    Hi, how do I programm a recursive function? The compiler always puts variables in registers, therefore the function cannot be called recursivly. An other question, how do I put variables in XRAM...
  • using Atmel 89C51RB2 XRAM for variables
    I want to use the extra memory in the XRAM area of the 89C51RB2 for extra variable storage. How is this done? If I write xdata unsigned int frequency[20] _at_ 0x0100; I get the error error 274...
  • assigning struct to variable
    Hi All,, Whats wrong with following ?? unsigned char myvar; struct mystruct{ unsigned char aaa:3; unsigned char bbb:3; unsigned char ccc:2; }mystruct = {1,2,3}; myvar = mystruct; Why...
  • Assign a global variable to a register
    Hello, in my application I use often a global variable. Since this variable is use in lots of functions, I'd like to assign it to a specific register (like DR28). It is possible? If yes, how can I...
  • Assign value issue in pdata variable
    Hi all, In my project, I write some codes like this sample: 1 void foo(char xdata *pbuf, char a, char b) 2 { 3 int pdata bufaddr; 4 long pdata testval; 5 6 testval = 0x200; 7 bufaddr = pbuf;...