74HC165 shift-in daisy chain question...

I have NO IDEA, how to do tha..

I will try and look it all up.. but can see this taking a long time for the last bit of coding..