SELECT
ORD[inst] / 8
FROM
2 => RETURN [OIformat];
3 => IF inst IN [dLC8..dLC11] THEN RETURN [OIformat];
6 => RETURN [OQBformat];
10B, 11B, 12B => RETURN [OIformat];
14B, 15B, 16B, 17B => RETURN [LRformat];
20B => RETURN [QRformat];
21B, 22B, 23B => RETURN [OBformat];
24B, 25B, 26B, 27B => RETURN [LRBformat];
30B, 31B => RETURN [RRformat];
32B => RETURN [ODBformat];
33B => IF inst IN [dRAI..dWRI] THEN RETURN [LRRBformat] ELSE RETURN [ODBformat];
34B, 35B => RETURN [RJBformat];
36B => RETURN [JBBformat];
37B => RETURN [ODBformat];
ENDCASE;