why dont hav use XBYTE


sir,

Because i have using the XBYTE for particular memory location. But in this program data transfer only through accumulator register. I want data store by using particular memory location.so that i have used for XBYTE


#include<stdio.h>
#include<reg51.h>
#include<intrins.h>


unsigned char xdata addend;
unsigned char xdata augend;
unsigned int  xdata sum;
void main()
{
addend = 0x55;
augend = 0x11;

sum = addend + augend;
}

More questions in this forum