JPH02247733A - System for simplifying binary code conversion - Google Patents
System for simplifying binary code conversionInfo
- Publication number
- JPH02247733A JPH02247733A JP6763989A JP6763989A JPH02247733A JP H02247733 A JPH02247733 A JP H02247733A JP 6763989 A JP6763989 A JP 6763989A JP 6763989 A JP6763989 A JP 6763989A JP H02247733 A JPH02247733 A JP H02247733A
- Authority
- JP
- Japan
- Prior art keywords
- data
- converted
- binary code
- lsd
- transferred
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 14
- 230000002457 bidirectional effect Effects 0.000 claims description 9
- 229910002056 binary alloy Inorganic materials 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は通信および情報処理産業に用いられるバイナリ
コードの変換に関し、特に業務プログラム中でのバイナ
リコードの変換方式に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to the conversion of binary codes used in the communications and information processing industries, and particularly to a method of converting binary codes in business programs.
(従来の技術)
従来、C0BOL言語によるコード変換方式は第2図に
示すようにして実現されていた。第2図において、最初
知内部テーブルを用いて変換されるべきデータに対応す
るコードをサーチする。続いて、サーチされたコードに
対応し、外部10進数コードをサーチする。最後に、サ
ーチされた外部10進数コードにより変換データを作成
する。(Prior Art) Conventionally, a code conversion method using the COBOL language has been realized as shown in FIG. In FIG. 2, a first known internal table is used to search for a code corresponding to the data to be converted. Subsequently, an external decimal code is searched corresponding to the searched code. Finally, converted data is created using the searched external decimal code.
(発明が解決しようとする課題)
上述した従来のコード変換方式は、メモリ内にテーブル
を備え、1桁ごとくコードをサーチし、対応付けられる
コードを探すという処理を繰返さなければならなかった
。このため、多くのメモリ容量を使用してサーチに長時
間がかかるという欠点がある。(Problems to be Solved by the Invention) The conventional code conversion method described above requires a table to be provided in memory, and the process of searching codes digit by digit and searching for codes that can be associated with each other must be repeated. For this reason, there is a drawback that a large amount of memory capacity is used and the search takes a long time.
本発明の目的は、正の整数のバイナリコードの変換時に
内部10進数と外部10進数との間で双方向移送を行う
ことKより上記欠点を除去し、小メモリ容量で短時間内
にサーチできるように構成したバイナリコード変換の簡
略化方式を提供することにある。An object of the present invention is to perform bidirectional transfer between an internal decimal number and an external decimal number when converting a binary code of a positive integer. The object of the present invention is to provide a simplified method for binary code conversion configured as follows.
(a題を解決するための手段)
本発明によるバイナリコード変換の簡略化方式は、内部
10進数と外部10進数との間で双方向の移送を行うた
めの双方向移送手段と、上記双方向移送手段を機能させ
るための処理手段とを具備して構成したものである。(Means for Solving Problem A) A simplified method of binary code conversion according to the present invention includes a bidirectional transfer means for bidirectional transfer between an internal decimal number and an external decimal number, and a bidirectional transfer means for bidirectional transfer between an internal decimal number and an external decimal number. The apparatus is configured to include a processing means for making the transport means function.
(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.
第1図は、本発明によるバイナリコード変換の簡略化方
式の一実施例を示す説明図である。FIG. 1 is an explanatory diagram showing an embodiment of a simplified method for binary code conversion according to the present invention.
まず、C0BOL言語によるバイナリコードの順変換に
ついて説明する。First, forward conversion of binary code using the COBOL language will be explained.
第1図において、順変換では最初に変換されるデータの
データ形態を決定し、続いて変換されるデータを内部テ
ーブルのCOMP−8に送る技法として最右桁を追加す
る。次に、最右桁の追加されたデータを内部テーブルの
COMP−8に移送し、内部テーブルのCOMP−8に
移送されたデータの最右桁を切離し、変換後のデータと
する。In FIG. 1, in the forward conversion, the data format of the data to be converted is first determined, and then the rightmost digit is added as a technique for sending the data to be converted to internal table COMP-8. Next, the data with the rightmost digit added is transferred to the internal table COMP-8, and the rightmost digit of the data transferred to the internal table COMP-8 is separated and used as converted data.
次にC0BOL言曙によるバイナリコードの逆変換につ
いて説明する。Next, the inverse conversion of binary code using COBOL will be explained.
逆変換では、最初に変換されるデータのデータ形態を決
定し、続いて変換されるデータを内部テーブルのCOM
F−8とみなすための技法として最右桁を追加する。そ
こで、内部テーブルのCOMP−8とみなされたデータ
を外部10進数に移送する。続いて、外部10進数に移
送されたデータの最右桁を切離し、変換後のデータとす
る。In inverse conversion, first determine the data format of the data to be converted, then convert the data to COM of the internal table.
Add the rightmost digit as a technique to consider it as F-8. Therefore, the data considered to be COMP-8 in the internal table is transferred to an external decimal number. Subsequently, the rightmost digit of the data transferred to the external decimal number is separated and used as converted data.
(発明の効果)
以上説明したように本発明は、正の整数のバイナリコー
ドの変換時に内部10進数と外部10進数との間で双方
向移送を行うことによシ、テーブルをメモリ内に備える
必要がなく、メモリ容量が縮小されるという効果がある
。さらに1 コード変換時にテーブルをサーチする必要
がなくなり、変換を短縮化できるという効果がある。(Effects of the Invention) As explained above, the present invention provides a table in memory by performing bidirectional transfer between an internal decimal number and an external decimal number when converting a binary code of a positive integer. This has the effect of reducing memory capacity. Furthermore, there is no need to search the table during code conversion, which has the effect of shortening the conversion process.
第1図は、本発明によるバイナリコード変換の簡略化方
式の一実施例を示す説明図である。
第2図は、従来技術によるバイナリコード変換の一例を
示す説明図である。FIG. 1 is an explanatory diagram showing an embodiment of a simplified method for binary code conversion according to the present invention. FIG. 2 is an explanatory diagram showing an example of binary code conversion according to the prior art.
Claims (1)
うための双方向移送手段と、前記双方向移動手段を機能
させるための処理手段とを具備して構成したことを特徴
とするバイナリコード変換の簡略化方式。A binary system comprising a bidirectional transfer means for bidirectional transfer between an internal decimal number and an external decimal number, and a processing means for operating the bidirectional transfer means. A simplified method for code conversion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6763989A JPH02247733A (en) | 1989-03-22 | 1989-03-22 | System for simplifying binary code conversion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6763989A JPH02247733A (en) | 1989-03-22 | 1989-03-22 | System for simplifying binary code conversion |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02247733A true JPH02247733A (en) | 1990-10-03 |
Family
ID=13350770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6763989A Pending JPH02247733A (en) | 1989-03-22 | 1989-03-22 | System for simplifying binary code conversion |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02247733A (en) |
-
1989
- 1989-03-22 JP JP6763989A patent/JPH02247733A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101553779B (en) | Migration apparatus which convert application program of mainframe system into application program of open system and method for thereof | |
KR20080034607A (en) | Migration apparatus which convert database of mainframe system into database of open system and method for thereof | |
JPH02247733A (en) | System for simplifying binary code conversion | |
CN116775599A (en) | Data migration method, device, electronic equipment and storage medium | |
CN112579312A (en) | Parameter mapping method and device, storage medium, interface calling platform and service system | |
JPH04297923A (en) | Character coder converting system | |
JP2713962B2 (en) | Character string search method and apparatus | |
JPH0675845A (en) | Data conversion automizing method | |
JP3241080B2 (en) | Data communication method | |
JPH0561745A (en) | Transforming device for format | |
JPS60256859A (en) | Control system for file transmission | |
JPS6134620A (en) | Inputting method to computer | |
JPH10334060A (en) | Arithmetic processor, parallel dispersion processing system, and data transmission method | |
JPH0337713A (en) | Code conversion processing system | |
CN116451651A (en) | Character data transcoding method, device, equipment and storage medium | |
JPH0314064A (en) | Code conversion processing system | |
JPH0448307B2 (en) | ||
CN113254262A (en) | Database disaster tolerance method and device and electronic equipment | |
JPH0250754A (en) | 'kanji' code conversion system | |
JPH04310159A (en) | Telegraphic message conversion system | |
JPH0359724A (en) | Error information compression system for translation system | |
JPH047770A (en) | Communication processor | |
JPH02309449A (en) | Conversion system from document data into image data | |
JPH03171254A (en) | Document file output device for tree structure chart | |
JPH0314154A (en) | Target program transfer system between computer system |