Appendix EProgramming Instructions
136
IR SR HR TR AR LR TC DM #
00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315 TC 000 to 511 Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
0000 to 9999
or 0000 to FFFF
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
Data
Areas
Name
Mnemonic
Operand Data AreasFunctionSymbol
BIT COUNTER
(@)BCNT(67)
BCNT(67)
N
SB
R
Counts the number of ON bits in one or
more words (SB is the beginning source
word) and outputs the result to the speci-
fied
result word (R). N gives the number
of
words to be counted. All words
in which bit
are
to be counted must be in the same data
area.
N:
IR
SR
HR
AR
LR
TC
DM
R:
IR
HR
AR
LR
TC
DM
SB:
IR
SR
HR
AR
LR
TC
DM
BLOCK COMPARE
(@)BCMP(68)
BCMP(68)
S
CB
R
Compares a 1-word binary value (S) with
the 16 ranges given in the comparison
table (CB is the starting word of the com-
parison
block). If the value falls within any
of
the ranges, the corresponding bits in the
result word (R) will be set. The
comparison
block must be within one data area.
S
CB CB+1
CB+2 CB+3
CB+4 CB+5
CB+30 CB+31
1
0
1
0
Lower
limit
Upper limit
Lower limit
≤
S
≤
Upper limit
1
Result
S:
IR
SR
HR
AR
LR
TC
DM
#
CB:
IR
SR
HR
LR
TC
DM
R:
IR
HR
AR
LR
TC
DM
Downloaded from Elcodis.com electronic components distributor