Your code is written for two SEPARATE 7-segment displays, each driven by a separate shift register. That two-digit display is a 2x8 matrix. You have to drive it like a matrix.
Your code is written for two SEPARATE 7-segment displays, each driven by a separate shift register. That two-digit display is a 2x8 matrix. You have to drive it like a matrix.