|
Хочется меньше надо использовать memory specific указатели. Обязательно прочитать в Keil Software — Cx51 Compiler User’s Guide (c51.pdf) хотя бы две главы:
Chapter 3. Language Extensions -> Pointers,
Chapter 6. Advanced Programming Techniques -> Interfacing C Programs to Assembler.
Вырезка из 3-ей главы:
-------------------------------------------
Memory-specific Pointers
Memory-specific pointers always include a memory type specification in the
pointer declaration and always refer to a specific memory area. For example:
char data *str; /* ptr to string in data */
int xdata *numtab; /* ptr to int(s) in xdata */
long code *powtab; /* ptr to long(s) in code */
Because the memory type is specified at compile-time, the memory type byte
required by generic pointers is not needed by memory-specific pointers.
Memory-specific pointers can be stored using only one byte (idata, data, bdata,
and pdata pointers) or two bytes (code and xdata pointers).
-------------------------------------------
E-mail: info@telesys.ru