| ??? 02/04/04 23:50 Read: times |
#64021 - RE: how define the buffer at particular memo Responding to: ???'s previous message |
http://www.keil.com/support/docs/2658.htm This tells you how to load a pointer to point to the memory address you want. It took me 10 seconds to find this one - and I've haven't used Keil tools. For Keil compiler questions - go straight to the horse's mouth. // this declares the buffer xdata volatile unsigned char Buffer[100] _at_ 0x8000; // this puts the address of the buffer into the pointer xdata volatile unsigned char *ptrBuff = Buffer; To store the byte: *ptrBuff = value; To read the byte: value = *ptrBuff; to increment the pointer to look at the next location: ptrBuff++; the read the value THEN increment the pointer: value = *ptrBuff++; |
| Topic | Author | Date |
| how define the buffer at particular memo | 01/01/70 00:00 | |
| RE: how define the buffer at particular memo | 01/01/70 00:00 | |
RE: how define the buffer at particular memo | 01/01/70 00:00 | |
| RE: how define the buffer at particular memo | 01/01/70 00:00 |



