At this point it would likely be easier to redo your breadboard with a 74HC154 which is 4 lines in and 16 mutually exclusive outputs. You would be using only 4 bits of your port and it would be much easier to drive software wise... If you only need 10 leds, just leave a few open outputs and test your output values in software to be less than or simply use %10 to have the output value wrap around from 0 to 9...
Originally Posted by hamxakhan
I believe the 74HC154 can be had for less than $2.00cdn. so that shouldn't be a problem.
outportb(0x378, leds[i] % 10);