74HC595 problem

Pointless posting code, when we have no idea what the schematic is.

.