A method of and apparatus for handling errors occurring in data stored in
memory is presented. Data to be stored in a buffer memory is applied to a
generator matrix to generate parity check bits. The parity check bits are
stored in the buffer memory along with the data. The stored data and
parity check bits are read and the read data is used to regenerate the
parity check bits. A result produced from the stored and regenerated
parity check bits is usable to directly identify a location of an
erroneous bit of the data in the buffer memory.