Appendix EProgramming Instructions
135
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
COLUMN-TO-WORD
(@)CTW(63)
(CPU11)
CTW(63)
S
C
D
Fetches
data from the same numbered
bit
(C)
in 16 consecutive words (where S is the
address of the first source word), and
creates a 4-digit word by consecutively
placing the data in the bits of the destina-
tion word, D.
The
bit from word S is placed into
bit 00 of
D, the bit from word S+1 is placed into bit
01, etc.
S
S+1
S+15
0
1
0
0
1
0
00
01
15
Bit C D
S:
IR
SR
HR
AR
LR
TC
DM
C:
IR
SR
HR
AR
LR
TC
DM
#
D:
IR
SR
HR
AR
LR
TC
DM
WORD-TO-COLUMN
(@)WTC(64)
(CPU11)
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)
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)
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.
Downloaded from Elcodis.com electronic components distributor