EEPROM allocation only increments.
And whether you're counting from end up or top down, you still need to know where the original program's highest EEPROM location is, and how many bytes you need now.
Going from end-up will make it longer before you overwrite locations, but it won't keep you from doing it.
If you start from the end of previous eeprom usage and add more as needed, then the compiler will let you know when you've run out.
But anyhow, if you know how many bytes you are adding(EEusedNow), and you know how many bytes are available ...
Code:
MaxEEPROM CON 255
EEusedNow CON 65
DATA @MaxEEPROM - EEusedNow + 1
ee_patnum DATA 2
ee_stepnum DATA 0
ee_bright DATA 255
ee_xfade DATA 254
;... etc. ...
Bookmarks