3. Instruction Set 
 
API 
Mnemonic  Operands  Function 
 
180    MAND  P
       
Matrix AND 
 
Type 
OP 
Bit Devices  Word devices  Program Steps 
X  Y  M  S  K  H  KnX
KnY
KnM
KnS
T  C  D  E  F 
MAND, MANDP: 9 steps 
 
SS2
SX2
SS2
SX2
SS2
SX2
Operands: 
S
1
: Matrix source device 1      S
2
: Matrix source device 2      D: Operation result 
n: Matrix length (n = K1~K256) 
 
Explanations: 
1.  MAND instruction performs matrix AND operation between matrix source device 1 and 2 with 
matrix length n and stores the operation result in D. 
2.  Rule of AND operation: the result is 1 only when both two bits are 1; otherwise the result is 0. 
3.  If operands S
1
, S
2
, D use KnX, KnY, KnM, KnS format, only n = 4 is applicable.   
 
Program Example: 
When X0 = ON, MAND performs matrix AND operation between 16-bit registers D0~D2 and 16-bit 
registers D10~D12. The operation result is then stored in 16-bit registers D20~D22. 
 
1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0
b15 b0
MAND
1
1
0 0 0
111
0 00000 00
1 1
0 0 0
111
0 00000 00
1
1
0 0 01
11
0 00000 00
1
1 0 0 0
0
0 00000 00
1 1
0 0 0
0
0 00000 00
1 1
0 0 0
0
0 00000 00
0 0
0 0
0 0
  Before
Execution
 After
Execution
D0
D1
D2
D10
D11
D12
D20
D21
D22