A semiconductor memory device having: a RAM port for randomly accessing a memory cell (1) array having memory cells disposed in matrix; a SAM port for serially accessing data of one row of the memory cell array (1); a mode switching unit (203) for switching the operation mode of the SAM port between an ordinary data output mode and a test mode, upon externally receiving a mode switching signal; and an address pointer outputting unit (104, 201, 501) for outputting an address pointer of the SAM port when the operation mode is switched to the test mode by the mode switching unit (203). <IMAGE>