HVAR
The HVAR macro accesses variables of any type at fixed absolute memory locations in the huge memory class.
The HVAR macro is defined as:
#define HVAR(object, addr) (*((object volatile huge *)(addr))) /* HDATA */
You may use this macro in your programs as follows:
#include <absacc.h> /* include absolute memory access macros */
:
:
int i;
long l;
l = HVAR (long, 0xFFE0); /* read long value at 0FFE0H */
HVAR (int, 0x100000) = i; /* write the value of i to 100000H */
#define IO HVAR (char, 0x11000) /* IO port at 11000H */
if (IO == 0) IO = 1; /* test port and write 1 to IO address */