2 Perform a diagnostic checksum after 6 steps.
5 If the current value is 0:
7 - Move one slot to the right.
8 - Continue with state B.
9 If the current value is 1:
11 - Move one slot to the left.
12 - Continue with state B.
15 If the current value is 0:
17 - Move one slot to the left.
18 - Continue with state A.
19 If the current value is 1:
21 - Move one slot to the right.
22 - Continue with state A.