How to use "bitwise" Location Code Types

by Laurie Henwood

Taking cmd 0xea and location code type B as an example.

The Ribbon on/off switch is worked by A2, as follows;

Ribbon L5.... A2=1
Ribbon L4.... A2=2
Ribbon L3.... A2=4
Ribbon L2.... A2=8
Ribbon L1.... A2=256
Ribbon R1.... A2=512
Ribbon R2.... A2=16
Ribbon R3.... A2=32
Ribbon R4.... A2=64
Ribbon R5.... A2=128

Combinations of Ribbons use these values additively...
so, Ribbons L5, L3, and R4 require an A2 value of

1+8+64=73.

Ribbons L3, L2, L1, R1, R2, R3 and R4, would require

A2= 4+8+256+512+16+32+64... or 892.

All Ribbons on, of course, require A2=1023.