@Curtis,
the byte is wired to both the HC374 chips as if it is a BUS. the concerned chip is selected by RA0 and RA1.

Software part , thanks to Wasssup1990, is already explained.