A magnetoresistive element includes a first ferromagnetic layer having a
first magnetization, the first magnetization having a first pattern when
the magnetoresistive element is half-selected during a first data write,
a second pattern when the magnetoresistive element is selected during a
second data write, and a third pattern of residual magnetization, the
first pattern being different from the second and third pattern, a second
ferromagnetic layer having a second magnetization, and a nonmagnetic
layer arranged between the first ferromagnetic layer and the second
ferromagnetic layer and having a tunnel conductance changing dependent on
a relative angle between the first magnetization and the second
magnetization.