This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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;
}

Parents
  • 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.

Reply
  • 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.

Children