3. Instruction Set
API
Mnemonic Operands Function
SS2
SX2
26
DAND P
Logical DWord AND
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
DAND, DANDP: 13 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S
1
: Source data device 1 S
2
: Source data device 2 D: Operation result
Explanations:
1. Logical double word (32-bit) AND operation.
2. This instruction conducts logical AND operation of S
1
and S
2
in 32-bit mode and stores the
result in D.
3. If operands S
1
, S
2
,
D use index F, only a 16-bit instruction is available.
Program Example:
When X1 = ON, the 32-bit source (D11, D10) and (D21, D20) are analyzed and the result of the
logical AND is stored in (D41, D40).
0 0 0 0 1 1 1 11 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 01 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1
DAND
b31
Before
execution
After
execution
0 0 0 0 1 1 1 11 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 0 0 01 1 1 1 1
0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1
b15 b0
D11 D10
D21 D20
D41 D40