When the command to move the cursor is a command to move rightward and leftward, a position at the destination of movement of the cursor is calculated, taking the amount of movement as an amount corresponding to one cell (one slot) in the right-and-left direction.