507
Conversion Instructions Section 3-12
Flags
Example When CIO 000000 is ON in the following example, ASC(086) converts three
hexadecimal digits in D00100 (beginning with digit 1) into their ASCII equiva-
lents and writes this data to D00200 and D00201 beginning with the leftmost
byte in D00200. In this case, a digit designator of #0121 specifies no parity,
the starting byte (when writing) = leftmost byte, the number of digits to read =
3, and the starting digit (when reading) = digit 1.
With CPU Units with unit version 4.0 of later, there are instructions to convert
4, 8, and 16 digits of numeric data to ASCII (STR4(524), STR8(527), and
STR16(528)).
Di: #0011 Di: #0112 Di: #0030
Di: #0130
Digit 3 Digit 2 Digit 1 Digit 0
Leftmost Rightmost
Digit 3 Digit 2 Digit 1 Digit 0 Digit 3 Digit 2 Digit 1 Digit 0
Leftmost
Rightmost
Leftmost
Rightmost
Leftmost
Rightmost
Digit 3 Digit 2 Digit 1
Digit 0
Leftmost
Rightmost
Rightmost
Leftmost
Name Label Operation
Error Flag ER ON if the content of Di is not within the specified ranges.
OFF in all other cases.
D:
S
D
S: D00100
Di: #
Number of digits
Digits
Di
Starting digit
Starting byte
(leftmost byte)