262
Conversion Instructions Section 5-19
first digit), the remaining digits will be taken starting back at the beginning of
S. The final word required to store the converted result (R plus the number of
digits to be converted) must be in the same data area as R, e.g., if two digits
are converted, the last word address in a data area cannot be designated; if
three digits are converted, the last two words in a data area cannot be desig-
nated.
Digit Designator The digits of Di are set as shown below.
Some example Di values and the digit-to-word conversions that they produce
are shown below.
Flags ER: Undefined digit designator, or R plus number of digits exceeds a data
area.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD or the DM area boundary has been exceeded.)
Specifies the first digit to be converted (0 to 3)
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
Not used (Set to zero)
Digit number: 3 2 1 0
R
R + 1
R
R + 1
R + 2
0
1
2
3
0
1
2
3
0
1
2
3
0
1
2
3
R
R + 1
R + 2
R + 3
R
R + 1
R + 2
R + 3
S
Di: 0031 Di: 0023
Di: 0030Di: 0010
S
S
S