Installation manual
Publication 1747-RM001G-EN-P - November 2008
5-22 Data Handling Instructions
Exclusive Or (XOR)
This instruction performs a bit-by-bit logical XOR. The operation is
performed using the value at source A and the value at source B. The result is
stored in the destination.
Source A and B can either be a word address or a constant; however, both
sources cannot be a constant. The destination must be a word address.
Updates to Arithmetic Status Bits
The arithmetic status bits are found in Word 0, bits 0 to 3 in the controller
status file. After an instruction is executed, the arithmetic status bits in the
status file are updated.
XOR
Bitwise Exclusive OR
Source A B3:2
16C8h<
Source B B3:3
EF0Ch<
Dest B3:5
F9C4h<
XOR
Output Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
• •••••
Table 5.13 Truth Table for A XOR B = Dest
ABDest
000
101
011
110
Table 5.14 Controller Function
With this Bit The Controller
S:0/0 Carry (C) always resets.
S:0/1 Overflow (V) always resets.
S:0/2 Zero (Z) sets if result is zero; otherwise resets
S:0/3 Sign (S) sets if result is negative (most significant bit is
set); otherwise resets.