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.
Hello everybody,
First of all, sorry for my english langugae because it is not my origin language.
So, i would like to know, how to define a pointer to point in gap memory in xdata. Look this example : unsigned char xdata * Ptr;
The adresse of Ptr is in internal data, and it point to xdata memory but anywhere (out of physical memory)!! I want to define this pointer to point in available gap memory xdata.
I hope it's clear. Thanks.
yes the address is in memery.
the pointer must be used in this
begin ptr = &h8002 *ptr = &h25; end.
you can add to the pointer like this
begin ptr = &h8002+1; end.
I think the OP wanted to know how he could find the address of the first free byte of xdata, so he knows what to initialize his pointer with.
Yes it's exact !
That's not the correct syntax for Keil's C51 compiler ...
... Unless they now have undocumented support for some sort of Pascal-esque additions???