297
Conversion Instructions
Section 5-20
Up to four digits from four consecutive source words starting with S may be
encoded and the digits written to R in order from the designated first digit. If
more digits are designated than remain in R (counting from the designated
first digit), the remaining digits will be placed at digits starting back at the
beginning of R.
The final word to be converted (S plus the number of digits to be converted)
must be in the same data area as SB.
Digit Designator
The digits of Di are set as shown below.
Some example Di values and the word-to-digit conversions that they produce
are shown below.
Flags
ER:
Undefined digit designator, or S plus number of digits exceeds a data
area.
Content of a source word is zero.
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
Example
When 00000 is ON, the following diagram encodes IR words 010 and 011 to
the first two digits of HR 10 and then encodes LR 10 and 11 to the last two
digits of HR 10. Although the status of each source word bit is not shown, it is
assumed that the bit with status 1 (ON) shown is the highest bit that is ON in
the word.
Specifies the first digit to receive converted data (0 to 3).
Number of words to be converted (0 to 3)
0: 1 word
1: 2 words
2: 3 words
3: 4 words
Not used.
Digit numbers: 3 2 1 0
0
1
2
3
R
Di: 0011
S
S + 1
0
1
2
3
S
S + 1
S + 2
S + 3
Di: 0030
R
S
S + 1
S + 2
S + 3
0
1
2
3
Di: 0032
R
Di: 0013
0
1
2
3
S
S + 1
R