Splitting the two sides makes it a bit easier to see what is going on.
Bits to the middle are ON, bits to the outside are OFF.
1st half: (starting RHS)
2nd half:
After completion of 1st half both registers are left set to 0.
This is no good as both registers will deliver 8 balls.
Solution: just set LHS to 0 from the beginning.
It will exhaust all of its 8 balls before switching back to RHS
In this way we get (starting RHS)
RHS: RRRRR (register set to 3)
LHS: RRRBBBBB (register set to 0)
RHS: BBB (register set to 0)
So required starting values:
Set (value)
L R
0 3