7.5 Comparison Instruction
7.5.1 Block Comparison (BCMP)
Compares two areas that blocks are specified in bytes.
Instruction format
R0
Operation unit (i)
• There is no operation unit.
List of operands
Operand
Description
Specify control data. (Settable range: 0 to 3)
S1
Specify the size of comparison blocks in bytes. (Settable range: 1 to 4096)
S2
Starting address (device address) of comparison block 1
S3
Starting address (device address) of comparison block 2
S4
Available devices (●: Available)
16-bit device
Operand
WX
WY
WR
S1
●
●
●
S2
●
●
●
S3
●
●
●
S4
●
●
●
Processing
• Compares the comparison block 1 specified by [S3] and the comparison block 2 specified by
[S4] for the number of bytes specified by [S2] according the control data specified by [S1],
and outputs the result to the system relay SB (=flag).
BCMP
WL
WS
SD
DT
LD
UM
●
●
●
●
●
●
●
●
●
●
●
●
H0
U5
S1
S2
32-bit
Integer
device
TS
TE
WI
WO
IX
K
CS
CE
7.5 Comparison Instruction
DT1
DT10
S3
S4
Real
num-
String
ber
U
H
SF
DF
" "
●
●
●
●
Index
modifier
●
●
●
●
7-27