Minecraft wiki entry for Redstone_computers, associated text: C = 0
D = 0
(Set A to) << A (bitshift A to the left)
JUMP IF (BIT (D) OF B == 0) TO LINE 6
(Set C to) C ADD A
(Set D to) D ADD 1
JUMP IF (D < LENGTH OF B) TO LINE 3
RETURN C