![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268361.webp)
322
Comparison Instructions
Section 3-7
Description
BCMP(068) compares the source data (S) to the 16 ranges defined by pairs
of lower and upper limit values in B through B+31. The first word in each pair
(B+2n) provides the lower limit and the second word (B+2n+1) provides the
upper limit of range n (n = 0 to 15). If S is within any of these ranges (inclusive
of the upper and lower limits), the corresponding bit in R is turned ON. The
rest of the bits in R will be turned OFF.
B
≤
S
≤
B+1
Bit 00 of R
B+2
≤
S
≤
B+3
Bit 01 of R
B+4
≤
S
≤
B+5
Bit 02 of R
B+6
≤
S
≤
B+7
Bit 03 of R
B+8
≤
S
≤
B+9
Bit 04 of R
B+10
≤
S
≤
B+11
Bit 05 of R
B+12
≤
S
≤
B+13
Bit 06 of R
B+14
≤
S
≤
B+15
Bit 07 of R
B+16
≤
S
≤
B+17
Bit 08 of R
B+18
≤
S
≤
B+19
Bit 09 of R
B+20
≤
S
≤
B+21
Bit 10 of R
B+22
≤
S
≤
B+23
Bit 11 of R
B+24
≤
S
≤
B+25
Bit 12 of R
B+26
≤
S
≤
B+27
Bit 13 of R
B+28
≤
S
≤
B+29
Bit 14 of R
B+30
≤
S
≤
B+31
Bit 15 of R
For example, bit 00 of R is turned ON if S is within the first range (B
≤
S
≤
B+1), bit 01 of R is turned ON if S is within the second range (B+2
≤
S
≤
B+3),
..., and bit 15 of R is turned ON if S is within the fifteenth range (B+30
≤
S
≤
B+31). All other bits in R are turned OFF.
EM Area with bank
En_00000 to
En_32767
(n = 0 to C)
En_00000 to
En_32736
(n = 0 to C)
En_00000 to
En_32767
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
#0000 to #FFFF
(binary)
---
Data Registers
DR0 to DR15
---
DR0 to DR15
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
B
R
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...