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

What is the difference for xdata types

Hi c51'wizards

What is the difference in having a variable as:

xdata unsigned char var;

versus:

unsigned char xdata var; ??????

Does it make sense to have a variable as:

xdata unsigned char xdata var; ?????

Please be easy in your answers, since I am a novice in this matter.

Thanks in advanced,

DB

Parents
  • What is the difference in having a variable as:

    xdata unsigned char var;

    versus:

    unsigned char xdata var; ??????

    None, but the latter definition is preferred.

    Does it make sense to have a variable as:

    xdata unsigned char xdata var; ?????

    No.

    Jon

Reply
  • What is the difference in having a variable as:

    xdata unsigned char var;

    versus:

    unsigned char xdata var; ??????

    None, but the latter definition is preferred.

    Does it make sense to have a variable as:

    xdata unsigned char xdata var; ?????

    No.

    Jon

Children
No data