A
system includes: a processor; a register configured to store a plurality of words, non-
volatile memory having a plurality of cells, each
cell corresponding to one of the words of the register, and wherein the each
cell of the plurality of cells are set to an initial reset value; a first controller that in response to a loss in power: determines the word stored by the register; and changes the initial reset value of the
cell of the non-
volatile memory corresponding to the determined word stored by the register to a set value; a second controller that in response to detecting a restoration in power: identifies the cell having the set value; writes the word corresponding to the identified cell to the register; and resets the cells of the non-
volatile memory to the initial reset value.