FVAR
The FVAR macro accesses absolute memory addresses in the far memory area (the HDATA memory class). You may use this macro in your programs as follows:
#include <absacc.h> /* Include Macro Definitions */
.
.
.
#define IOVAL FVAR (long, 0x14FFE) /* long at HDATA address 0x14FFE */
var = IOVAL; /* read */
IOVAL = 0x10; /* write */
var = FVAR (int, 0x24002) /* read int from HDATA address 0x24002 */
.
.
.
Note
- Objects accessed using this macro may not cross a 64KB segment boundary. For example, you cannot access a long variable at address 0xFFFE.
Related Knowledgebase Articles