I should probably mention that you can do the same thing with ...
Code:
pattern var byte : EE_pattern DATA 1 : READ EE_pattern, pattern
MyWord var WORD : EE_MyWord DATA WORD 12345 : READ EE_MyWord, WORD MyWord
MyLong var LONG : EE_MyLong DATA LONG 123456789: READ EE_MyLong, LONG MyLong
; to save the variables to EEPROM ...
WRITE EE_pattern, pattern
WRITE EE_MyWord, WORD MyWord
WRITE EE_MyLong, LONG MyLong
No include needed.
The only difference is that you can't restore to the original "default" value like EE_vars.
This stuff wasn't available in 2005

Bookmarks