Patent ID: 8812767

Claim:
A method of controlling a memory including first and second storage areas which include a plurality of memory cells, the method comprising: determining, in response to a request for writing a write data string, whether the write data string includes a logical value-changing portion that changes a logical value stored in a memory cell of the plurality of the memory cells from a first logical value to a second logical value which is different from the first logical value; writing, to the first storage area, a logical value-unchanging portion of the write data string other than the logical value-changing portion of the write data string, wherein the logical value-changing portion of the write data string is not written to the first storage; and inverting a logical value of the logical value-changing portion of the write data string from the second logical value to the first logical value and writing the inverted logical value of the logical value-changing portion of the write data string to the second storage area which is different from the first storage area, wherein the logical value-unchanging portion of the write data string is not written to the second storage area.