ABEL Program #2
INTERFACE (A3..A0, S1, S0 -> B3..B0);
A3..A0 PIN; " data inputs
S1, S0 PIN; " Rotate amount
B3..B0 PIN; " data outputs
B.OE = 0; " Default value
WHEN S == 0 THEN B0.OE = 1
ELSE WHEN S == 1 THEN B1.OE = 1
ELSE WHEN S == 2 THEN B2.OE = 1
ELSE WHEN S == 3 THEN B3.OE = 1