Binary selector: Select a value between 8 integer values
AN #Sel_1
AN #Sel_2
AN #Sel_3
AN #Sel_4
AN #Sel_5
AN #Sel_6
AN #Sel_7
AN #Sel_8
JC M010
JU M009
M010: L #Default
T #Out
JU FIN
// If selector 8 is true then the output is equal to value 8
M009: AN #Sel_8
JC M008
L #In_8
T #Out
M008: NOP 0
// If selector 7 is true then the output is equal to value 7
AN #Sel_7
JC M007
L #In_7
T #Out
M007: NOP 0
// If selector 6 is true then the output is equal to value 6
AN #Sel_6
JC M006
L #In_6
T #Out
M006: NOP 0
// If selector 5 is true then the output is equal to value 5
AN #Sel_5
JC M005
L #In_5
T #Out
M005: NOP 0
// If selector 4 is true then the output is equal to value 4
AN #Sel_4
JC M004
L #In_4
T #Out
M004: NOP 0
// If selector 3 is true then the output is equal to value 3
AN #Sel_3
JC M003
L #In_3
T #Out
M003: NOP 0
// If selector 2 is true then the output is equal to value 2
AN #Sel_2
JC M002
L #In_2
T #Out
M002: NOP 0
// If selector 1 is true then the output is equal to value 1
AN #Sel_1
JC M001
L #In_1
T #Out
M001: NOP 0
FIN: NOP 0