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.
I need to use generic pointers so I can access XDATA and CODE memory with my message handler. How do I know what the memory type is at runtime? Is there a function or macro for this? I know the memory type is in byte 0 of the pointer.... how do I go about accessing byte 0.
"how do I go about accessing byte 0." Pointers in 'C' are dangerous enough without hacking about with individual bytes of the pointer value! As already noted, you shouldn't need to do it - the Keil runtime handles it for you. But, if you really must, see: http://www.keil.com/forum/docs/thread3210.asp