Mitsubishi Electronics E60 Video Game Controller User Manual


 
WAND
- 136 -
{ WAND ... Logical AND of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer Level
X Y M L SM F T C D R Z K H P N
Digit
desig-
nation
No. of
steps
Index
S1
S2
D
4
Setting data
S2
S1
Data to be logical ANDed
or No. of device
where data is stored.
No. of device to store
logical AND results.
D
WAND
S1
D
WAND
S2
Operation command
Function
(1) Logical AND is executed for each bit of the 16-bit data in the device designated with S1 and the
device designated with S2, and the results are stored in the device designated with D.
Before execution
S1
11 1 0111110001111
WAND
00 0 1001001001010
16-bit
00 0 0001000001010D
S2
After execution
(2) The bit device other than the designated digits are operated as 0.
(Refer to program example (2).)