a semiconductor memory includes an input buffer means for storing inputted data , an output buffer means for storing the data and for outputting the data and a storage means for storing the data outputted from the input buffer means and for transferring the data to the output buffer means . the input buffer means includes a plurality of memories having equal capacity . the output buffer means also includes a plurality of memories having equal capacity . the memory means have memory capacity of a divisor of memory capacity per line of the storage means . in addition , the semiconductor memory can also include a dividing means for dividing image data outputted from said input buffer into smaller data units to be written on said storage means and a recombining means for said smaller data units outputted from said storage means to supply to said output buffer means .