12.11 Variables in EEPROM Data Space (Device Dependent)
The compiler provides some convenience macro definitions to allow placement of data into the device’s EEPROM Data (EEData) area. This can be done quite simply:
int _EEDATA(2) user_data[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
};
user_data
will be placed in the EEData space
(space(eedata))
reserving 10 words with the given initial values.
The device provides two ways for programmers to access this area of memory. The first is via the program space visibility window. The second is by using special machine instructions (TBLRDx).