$EEPROM- Define useable EEPROM area

Language reference ›› Directives ››
Parent Previous Next

eeprom-directive = $EEPROM address-expression [ TO address-expression ] .        


Defines the EEPROM memory area to use for variables that will be allocated after this point (default is all available EEPROM).

The first parameter defines only the EEPROM start area, the optional second parameter defines EEPROM top too (last usable address).

This directive is local to the current module.


{$EEPROM $10 TO $FF }  // $0 to $0F reserved for direct use