hello everyone, i am quite new to programming 8051..hoping to receive some help.. i have a pointer variable.The address stored in this variable resides in the on-chip XRAM.
unsigned char xdata *xloc;
i need the control of my program to be transferred to this address..how can it be done in C??? Thank You in advance for the help..
8051 Basics Time:
The 8051 architecture can not execute instructions from anything other than CODE space.
Also, the 8051 archicture has no instruction to write to CODE space - the CODE space is strictly read-only.
Therefore, the only way to achieve this is by some proprietary extension - such as mapping memory into both CODE and XDATA spaces.
How have you achieved this?