The present invention is directed to suppress data loss caused by power
shut-down during a rewriting process and to shorten time required to make
a depletion check.A nonvolatile memory apparatus includes a rewritable
nonvolatile memory and a card controller. The nonvolatile memory has a
physical address area corresponding to a logical address and a save area.
In response to a data rewrite instruction on a required logical address,
the card controller stores data in a predetermined physical address area
corresponding to the logical address to the save area and rewrites the
data stored in the physical address area. When rewriting of the physical
address area is incomplete, the card controller rewrites the data in the
physical address area with the data stored in the save area. Thus, data
loss caused by the power shut-down can be suppressed by data backup, and
it is sufficient to make the depletion check in two places of the save
area and the physical address area.