42
Instruction Functions Section 2-2
EXPANDED
BLOCK COM-
PARE
BCMP2
@BCMP2
502
(CS1-H, CJ1-H, or
CS1D CPU Unit
Ver. 2.0 or later
only)
CJ1M CPU Unit
(Pre-Ver. 2.0 or
Unit Ver. 2.0 or
later)
Compares the source data to up to 256 ranges (defined by upper and
lower limits) and turns ON the corresponding bit in the result word when
the source data is within a range.
Output
Required
322
AREA RANGE
COMPARE
ZCP
@ZCP
088
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
Compares the 16-bit unsigned binary value in CD (word contents or
constant) to the range defined by LL and UL and outputs the results to
the Arithmetic Flags in the Auxiliary Area.
Output
Required
326
DOUBLE AREA
RANGE COM-
PARE
ZCPL
@ZCPL
116
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
Compares the 32-bit unsigned binary value in CD and CD+1 (word con-
tents or constant) to the range defined by LL and UL and outputs the
results to the Arithmetic Flags in the Auxiliary Area.
Output
Required
329
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
BCMP2(502)
S
T
R
S: Source data
T: 1st word of
block
R: Result word
T+1
T+3
T+2N+1
S
T
T+2
T+4
T+2N+2
0
1
D
N
D+15 max.
Bit
1: In range
0: Not in range
Source data
Range 0 A
Range 1 A
Range N A
n=255 max.
Range 0 B
Range 1 B
Range N B
Note: A can be less than
or equal to B or