We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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; }
1) Why do you think bold text is a good idea?
2) Why starting new threads for answering questions?
3) You can't control what registers the compiler will use.
4) What problem are you actually trying to solve.
By the way - plesae return to original thread, if you expect people to care.
4) What problem are you actually trying to solve?