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.