226
4
4 Instructions4.6.2 Matrix Comparison
◆
Function
Bits with a value of 0 or 1 are counted in a matrix composed of n 16-bit data entries from head address [S].
The result is stored in elements from head address [D].
When M8331 = ON, bits with a value of 1 are counted; otherwise, bits with value of 0 are counted.
M8332 is set to ON when the result is 0.
◆
Application
When M8331 = OFF and M100 = ON:
When M8331 = ON and M100 = ON:
M8331 indicates whether bits with a value of 0 or 1 are counted. M8332 is set to ON when the counting
result is 0.
4.6.2 Matrix Comparison
Matrix comparison
BKCMP= Matrix equal-to comparison (S1 = S2)
BKCMP> Matrix greater-than comparison (S1 > S2)
BKCMP< Matrix less-than comparison (S1 < S2)
BKCMP<> Matrix not-equal-to comparison (S1 ≠ S2)
BKCMP<= Matrix less-than-or-equal-to comparison (S1 ≤ S2)
BKCMP>= Matrix greater-than-or-equal-to comparison (S1 ≥ S2)
MCMP Matrix comparison operation