CARRAY
The CARRAY macro may be used to access an array of type object at a fixed absolute address base in the code memory class. The CARRAY macros scales the index by the size of object and adds the result to base. The final address is then used to access the memory.
The CARRAY macro is defined as follows:
#define CARRAY(object, base) ((object volatile code *) (base)) /* CODE */
You may use this macro in your programs as shown in the example below:
#include <absacc.h> /* include absolute memory access macros */
:
:
int i;
long l;
l = CARRAY (long, 0x8000)[i]; /* long array at CODE 0x8000 */