modify the control signal, adding the two bits memory code