DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 438API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SESX2182 MXOR P Matrix XORTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F MXOR, MXORP: 9 stepsS1 * * * * * * *S2 * * * * * * *D * * * * * *n * * *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:S1: Matrix source device 1 S2: Matrix source device 2 D: Operation resultn: Matrix length (n = K1~K256)Explanations:1. MXOR instruction performs matrix XOR operation between matrix source device 1 and 2 withmatrix length n and stores the operation result in D2. Rule of matrix XOR operation: the result is 1 if the two bits are different. The result is 0 if thetwo bits are the same3. If operands S 1, S 2, D use KnX, KnY, KnM, KnS format, only n = 4 is applicable..Program Example:When X0 = ON, MXOR performs matrix XOR operation between 16-bit registers D0~D2 and 16-bitregisters D10~D12. The operation result is then stored in 16-bit registers D20~D22X0MXOR D0 D20 K3D10BeforeExecutionAfterExecution111 0 00 1100 0011 0 00 1100 0011 0 00 1100 000 10 10 10 10 10 10 1010 10 10 10 10 10 10 1010 10 10 10 10 10 10 101111110001111111 0 01001 0 01001 0 010011111111 1111111111000000000000b15 b0MXORD0D1D2D10D11D12D20D21D22