I have turn on 16 LEDs one by one using two 74HC595 shift register. I have some doubt regarding my code and need some help

Shifts out a byte of data