74HC595 and 74HC165 combined library.

How do you want to wire these up as two chained shift registers or as two separate systems?