225
4
4 Instructions 4.6.1 Matrix Operations
◆
Function
The bit pattern of the n bytes of data from head address [S] is inverted. The result is stored in elements
from head address [D].
1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 1
1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 1
0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 0
0 0 0 0 1 0 1 0 1 1 1 1 1 1 1 0
[+1]
[S+0]
[+1]
[D+0]
(bit inversion)
◆
Application
MBC: Matrix bit status counting operation
◆
Overview
The MBC instruction counts bits in a matrix by status.
MBC S n D
Matrix bit status
counting operation
Applicable model:
H3U
S Matrix Operand element in an operation 16-bit instruction (7
steps)
MBC: Continuous
execution
MBCP: Pulse
execution
n Data count
Number of data entries in an operation; value range:
1 to 256
D
Operation
result
Start number of elements that store the operation
result
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.