Programming Instructions Appendix B
302
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
WORD-TO-COLUMN
(@)WTC(64)
(CPU11-E)
WTC(64)
S
D
C
Places bit data from the source word (S),
consecutively into the same numbered
bits of the 16 consecutive destination
words (where D is the address of the first
destination word).
Bit 00 from word S is placed into bit C of
word D, bit 01 from word S is placed into
bit C of word D+1, etc.
D
D+1
D+15
1
1
0
1
1
0
00
01
15
Bit CS
S:
IR
SR
HR
AR
LR
TC
DM
D:
IR
SR
HR
AR
LR
TC
DM
C:
IR
SR
HR
AR
LR
TC
DM
#
HOURS-TO-SECONDS
(@)HTS(65)
(CPU11-E)
HTS(65)
S
R
–––
Converts a time given in hours/minutes/
seconds (S and S+1) to an equivalent time
in seconds only (R and R+1). S and S+1
must be BCD and within one data area. R
and R+1 must also be within one data
area.
S:
IR
SR
HR
AR
LR
TC
DM
R:
IR
SR
HR
AR
LR
TC
DM
–––:
Not
used.
SECONDS-TO-HOURS
(@)STH(66)
(CPU11-E)
STH(66)
S
R
–––
Converts a time given in seconds (S and
S+1) to an equivalent time in hours/minu-
tes/seconds (R and R+1). S and S+1 must
be BCD between 0 and 35,999,999, and
within the same data area. R and R+1
must also be within one data area.
S:
IR
SR
HR
AR
LR
TC
DM
R:
IR
SR
HR
AR
LR
TC
DM
–––:
Not
used.
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