Digital input from or digital output to memories of the shift register type