EEPROM emualtion for 8-bit flash MCU