40104 4-bit 3-state bidirectional shift register with separate shift left and shift right serial inputs. +----------+ +-----------------------+ OE |1 +--+ 16| VCC | S1| S0| Function | D |2 15| Q3 |---+---+---------------| P3 |3 14| Q2 | 0 | 0 | Reset | P2 |4 13| Q1 | 0 | 1 | Shift right | P1 |5 40104 12| Q0 | 1 | 0 | Shift left | P0 |6 11| CLK | 1 | 1 | Parallel load | L |7 10| S1 +-----------------------+ GND |8 9| S0 +----------+ [This information is part of the GIICM]