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..
yea you are right..storing the opcodes in the xdata space is not going to do any good and also there are chances of them being over-written since xdata space is read/write...but this supposed trainer kit has already been implemented...and as per the manual the upper 32K bytes of an external RAM IC is meant for the user program memory...they probably have some mapping between the xdata and code space....will check properly...anyways thanQ for all the help and links...greatly appreciate...:)
So what, exactly, is your goal here?
It used to be a common trick on Trainers to overlay part of the code space with the XRAM. This allowed the monitor / loader program to be safe. And allowed the student to "program" the Trainer. Chips with Flash memory have made this unnecessary.
"Chips with Flash memory have made this unnecessary"
Indeed.
So, again, what is the goal of this "trainer"?
Is it for a course in computer archaeology...?!
computer archaeology love the (here very appropiate) expression
Erik