Manual

40
12. SEL Language
noisdnapxE
noitidnoc
)RO·DNA(
tupnI
noitidnoc
)galF·O/I(
dnammoC
tsoP
)galF·troptuptuO(
dnammoC 1dnarepO 2dnarepO
lanoitpOlanoitpODNA.oNelbairaVataDRZ
AND (Logic And)
[Function] Stores the results of the logic AND operation on the contents of the variable in operand 1
and the in operand 2, in the variable in operand 1. The output turns ON when the result of the
operation is 0.
[Example 1] LET 1 204 Assign 204 to variable 1.
AND 1 170 Assign 136 the result of logic AND on 204 (contents of variable 1)
AND 170 (data in operand 2), to vaiable 1.
[Example 2] LET 1 2 Assign 2 to variable 1.
LET 2 204 Assign 204 to variable 2.
LET 3 170 Assign 170 to variable 3.
AND *1 *3 Assign 136, the result of logic AND on 204(content of variable 2 which is
the content in variable 1) and 170 (content of variable 3), to 2(the content
of variable 1).
Decimal number Binary number
204 11001100
AND 10101010
10001000
AND 170
136
12.4 Logic and Operation commands