摘要 |
PURPOSE:To easily convert an unpack decimal numeral in an EBCDIC code system into the unpack decimal numeral of an ASCII code system by converting 4-bit into 3 in hexadecimal number when the 1st 4-bit of a 1-byte code representing a numeral in the EBCDIC code system is F in hexadecimal number. CONSTITUTION:The unpack decimal numeral consists of a zone part 1, a numeral part 2 and a part 3 where a numeral and a code are overloaded. The zone part 1 is the replacement of F in hexadecimal number in the EBCDIC code into 3 and the overloaded part 3 is obtained from the code and the numeral of the least significant digit in the EBCDIC code system by a conversion table. Numerals F0-F9 represented in hexadecimal number in the EBCDIc code except the least significant digit are converted into numerals 30-39 represented in the ASCII code, and the numeral and code of the least significant digit of the EBCDIC code are assigned to the overloaded part 3 in the ASCII code system according to the code table to apply code conversion. |