NARRAY
The NARRAY macro may be used to access an array of type object at a fixed absolute address base in the near memory class. The NARRAY 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 NARRAY macro is defined as follows:
#define NARRAY(object, base) ((object volatile near *) (base)) /* EDATA */
You may use the NARRAY macro in your programs as shown in the example below:
#include <absacc.h> /* include absolute memory access macros */
:
:
long l;
l = NARRAY (long, 0x8000)[i]; /* long array at EDATA 0x8000 */
NARRAY (long, 0x8000)[i] = 0x12345678; /* assign a value */
:
: