DXOR
- 147 -
Program example
(1) Program that compares the X20 to 3F 32-bit data and the D9, 10 data when X6 turns ON, and
stores the differing No. of bits in D16.
K8X20
DXOR D9
X6
10
SUM
D9
Exclusive OR the X20 to 3F 32-bit data
and D9, 10 data.
Store the total No. of "1" bits of
the D9 D16-bit data in D16.
D16
Coding
No. of
steps
Com-
mand
Device
10 LD X6
11 DXOR K8X20 D9
14 SUM D9 D16
18