209
CB+24 ≤ S ≤ CB+25 Bit 12
CB+26 ≤ S ≤ CB+27 Bit 13
CB+28 ≤ S ≤ CB+29 Bit 14
CB+30 ≤ S ≤ CB+31 Bit 15
Each lower limit word in the comparison block must be less than or equal to the
upper limit.
CB cannot be one of the last 31 words in a data area because it designates the
first of 32 words.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
EQ (A50006): Content of R is zero after execution.
The following example shows the comparisons made and the results provided
for BCMP(022). Here, the comparison is made during each scan when
CIO 000000 is ON.
S: 0001 Lower limits Upper limits R: 1205
0001 0210 1210 0000 1211 0100 120500 0
1212 0101 1213 0200 120501 0
1214 0201 1215 0300 120502 1
1216 0301 1217 0400 120503 0
1218 0401 1219 0500 120504 0
1220 0501 1221 0600 120505 0
1222 0601 1223 0700 120506 0
1224 0701 1225 0800 120507 0
1226 0801 1227 0900 120508 0
1228 0901 1229 1000 120509 0
1230 1001 1231 1100 120510 0
1232 1101 1233 1200 120511 0
1234 1201 1235 1300 120512 0
1236 1301 1237 1400 120513 0
1238 1401 1239 1500 120514 0
1240 1501 1241 1600 120515 0
Compare data in 0001
(which contains 0210)
with the given ranges.
Address Instruction Operands
00000 LD 000000
00001 BCMP(022)
0001
1210
1205
0000
00
(022)
BCMP 0001 1210 1205
Precautions
Example
Comparison Instructions Section 5-16