74HC595 problem

ieee488:
Pointless posting code

And when it is pure garbage. This code has nothing to do with 74hc595. You might as well post the script for "Othello" into the IDE. At least that would be worth reading.