| ||||||||
Technical Support Support Resources Product Information | C51: RESERVING MEMORY ACCESSED WITH XBYTE AND XWORDInformation in this article applies to:
QUESTIONI'm using XBYTE and XWORD to access memory directly. How can I reserve the memory so the compiler doesn't locate variables where I have located my memory buffer? ANSWERYou may declare an xdata array using the _at_ keyword to reserve memory as follows: unsigned char xdata buffer [100] _at_ 0x8000; to reserve 100 bytes starting at 8000h. This ensures that the compiler does not locate any other variables at this location. MORE INFORMATION
SEE ALSOLast Reviewed: Friday, July 15, 2005 | |||||||
| ||||||||