Mitsubishi Electronics E60 Video Game Controller User Manual


 
WAND
- 137 -
Execution conditions
The execution conditions for WAND are as follow.
Operation command OFF
WAND
ON
Executed per scan
Executed per scan
Program example
(1) Program that executes logical AND of the D10 data and D20 data when XA turns ON, and stores
the results in D33.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WAND D10 D20 D33
WAND D20
D10
D33
XA
10
15
(2) Program that executes logical AND of the X10 to 1B data and D33 data when XA turns ON, and
outputs the results to D50.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WAND K3X10 D33 D50
WAND
D33
K3X10 D50
XA
10
15
X1B to 10
0
0
01100111000100
WAND
11 0 0110011001101
00 0 0100011000100
D50
D33
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
X1B X1A X19 X18 X17 X16 X15 X14 X13 X12 X11 X10
Interpreted as 0