Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Two-Byte Code Conversion Method

IP.com Disclosure Number: IPCOM000043967D
Original Publication Date: 1984-Oct-01
Included in the Prior Art Database: 2005-Feb-05
Document File: 3 page(s) / 43K

Publishing Venue

IBM

Related People

Hirobe, K: AUTHOR [+2]

Abstract

A method for converting data of two-byte code to any other code is provided utilizing four tables Tables A-D. Table A contains a matrix of 256 x 32 table elements each comprising a string of eight bits. The vertical coordinate of Table A is addressed by the first byte of the input two-byte code data, and the horizontal coordinate is by an eight-byte group which the second byte of the input data belongs to. Each bit of the table element indicates the validity of the two-byte code data having the involved first byte and the second byte belonging to the eight-byte group. The binary '1' of the table element represents the validness of the associated two-byte code data, so it is convertible. The binary '0' represents the invalidness of the associated data, so it is not convertible.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 3

Two-Byte Code Conversion Method

A method for converting data of two-byte code to any other code is provided utilizing four tables Tables A-D. Table A contains a matrix of 256 x 32 table elements each comprising a string of eight bits. The vertical coordinate of Table A is addressed by the first byte of the input two-byte code data, and the horizontal coordinate is by an eight-byte group which the second byte of the input data belongs to. Each bit of the table element indicates the validity of the two- byte code data having the involved first byte and the second byte belonging to the eight-byte group. The binary '1' of the table element represents the validness of the associated two-byte code data, so it is convertible. The binary '0' represents the invalidness of the associated data, so it is not convertible. For example, when the input data of the two-byte code is X'0312', a bit string of B'01110000' associated with X'0310' - X'0317' is obtained in which X means hexadecimal and B means binary. As the X'0312' is the third number in the X'0310' - X'0317' and the third bit in the obtained bit string B'01110000' is the second binary '1' in the bit string, so it is found that the X'0312' is the second valid two-byte code data of the possible data X'0310' - X'0317'. Table B has the same configuration and addressing as Table A. The eight bits of the table element represent the total number of the valid two-byte code data having the involved first byte and the second byte of X'00' to an eight-byte group just prior to the group which the involved second byte belongs to. For example, when the input data of two-byte code is X'0312', the X'06' is obtained from Table B. This means that there are six valid two-byte code data in the possible data X'0300' through X'030F'. Accordingly, further assuming that the bit string B'01110000' is obtained from Table A, the X'0312' is the eighth valid two-byte code having the first byte X'03'. Table C contains 256 two-byte data, each indicating an address of a specified location in Table D which contains the final output data. All of the output data is arranged in Table D in the same order as the associated valid two- byte code data in the ascending order. Accordingly, each data in Table C indicates an address of an output code data in Table D which is converted from the first one o...