IAI America ASEL User Manual
Page 128
![background image](/manuals/350317/128/background.png)
Part 2 Programs
Chapter 3 Explanation of Commands
106
Part 2 Programs
z
EOR (Logical exclusive-OR)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional
Optional
EOR
Variable
number
Data
ZR
[Function] Assign the logical exclusive-OR operation result of the content of the variable specified in
operand 1 and the value specified in operand 2, to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
[Example 1]
LET
1
204
Assign 204 to variable 1.
EOR
1
170
Assign the logical exclusive-OR operation result
(102) of the content of variable 1 (204) and 170, to
variable 1.
[Example 2]
LET
1
204
Assign 204 to variable 1.
LET
3
170
Assign 170 to variable 3.
EOR
1
*3
Assign the logical exclusive-OR operation result
(102) of the content of variable 1 (204) and the
content of variable 3 (170) to variable 1.
Decimal
Binary
204
EOR 170
102
11001100
EOR 10101010
01100110