How to connect 74HC165 ?

Here is a diagram using a different microprocessor but the wiring should be about right.