JPS5939048B2 - Code conversion method - Google Patents

Code conversion method

Info

Publication number
JPS5939048B2
JPS5939048B2 JP55024707A JP2470780A JPS5939048B2 JP S5939048 B2 JPS5939048 B2 JP S5939048B2 JP 55024707 A JP55024707 A JP 55024707A JP 2470780 A JP2470780 A JP 2470780A JP S5939048 B2 JPS5939048 B2 JP S5939048B2
Authority
JP
Japan
Prior art keywords
code
registration
sub
conversion method
input
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.)
Expired
Application number
JP55024707A
Other languages
Japanese (ja)
Other versions
JPS56123036A (en
Inventor
宗敏 安藤
喬之 千葉
健「ぞう」 岩間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP55024707A priority Critical patent/JPS5939048B2/en
Publication of JPS56123036A publication Critical patent/JPS56123036A/en
Publication of JPS5939048B2 publication Critical patent/JPS5939048B2/en
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 本発明は複数のサブテーブルに区分したコードテーブル
を用い、入力コードでサブテーブルを選択し、該サブテ
ーブル内の先頭コードを入力コードで指定された登録コ
ードに該当する登録テーブルの順位に応じて演算し登録
コードに変換するコード変換方式に関するものである。
Detailed Description of the Invention The present invention uses a code table divided into a plurality of sub-tables, selects a sub-table based on an input code, and selects the first code in the sub-table that corresponds to the registration code specified by the input code. This relates to a code conversion method that performs calculations and converts into registered codes according to the order of the registration table.

従来、ある入力装置からの入力コードを別のコードに変
換して所定装置に出力したい場合、たとえば第1図に示
すように、キーボード1を操作しそれぞれのキースイッ
チの座標コードをコードテーブル2に送り、この座標コ
ードを文字コードに変換した後、文字発生器3を介して
表示器4に表示する方式が多用されている。
Conventionally, when you want to convert an input code from a certain input device into another code and output it to a predetermined device, for example, as shown in FIG. A method is often used in which the coordinate code is converted into a character code and then displayed on the display 4 via the character generator 3.

この場合、コードテーブル2は通常のメモリと同様に、
キースイッチの座標コードをアドレスとし文字コードを
データとして記憶させるが、このコードテーブルは表示
装置の周囲に付設されるから、処理が簡単でかつ小形に
圧縮されることが望ましい。
In this case, code table 2 is stored in the same way as normal memory.
The coordinate code of the key switch is used as an address, and the character code is stored as data. Since this code table is attached around the display device, it is desirable that the processing is simple and that it is compressed into a small size.

このようなコードの変換は通常キーボード等からの座標
コードを連続した順位の文字コードに変換し、インタフ
ェイスコードとして文字発生器に供給するが、このイン
タフェイスコードを文字発生器に入力し今度は文字パタ
ーンを発生するための内部コードに変換される。
Normally, such code conversion involves converting the coordinate code from the keyboard etc. into a consecutive character code and supplying it to the character generator as an interface code. Converted into internal code for generating character patterns.

座標コードより変換されるインタフェイスコードは連続
順位コードでよいが、内部コードは文字発生器に登録さ
れたコードのみを選択変換し、登録されていないコード
は除外されて他の処理手段に移す。この場合の内部コー
ドヘの選択変換の手順を通常の比較回路等を用いて実現
しようとするとかなり複雑な構成となることを免れない
The interface code converted from the coordinate code may be a continuous rank code, but as for the internal code, only codes registered in the character generator are selectively converted, and unregistered codes are excluded and transferred to other processing means. If an attempt is made to implement the selective conversion procedure to the internal code in this case using a normal comparison circuit, the configuration will inevitably become quite complicated.

本発明の目的は処理の容易なコードテーブルを用いて入
力コードのうち登録されたコードのみを選択変換するコ
ード変換方式を提供することである。
An object of the present invention is to provide a code conversion method that selectively converts only registered codes among input codes using a code table that is easy to process.

前記目的を達成するため、本発明のコード変換方式は入
力コードをコードテーブルを用いて指定された登録コー
ドに変換して出力するコード変換方式において、前記コ
ードテーブルが複数のサブテーブルより成り、各サブテ
ーブルはそれぞれ先頭コードと順位に並べた登録テーブ
ルの1つより成る複数の組を含み、前記入力コードをデ
コードして前記コードテーブル内のサブテーブルを選択
し、さらに該サブテーブル内の登録テーブルが入力コー
ドに指定された登録コードに該当するものであれば、該
サブテーブル内の先頭コードを登録テーブルの順位に応
じて演算して登録コードに変換することを特徴とするも
のである。
In order to achieve the above object, the code conversion method of the present invention is a code conversion method that converts an input code into a designated registered code using a code table and outputs the code, wherein the code table is composed of a plurality of sub-tables, and each The sub-tables each include a plurality of sets consisting of a leading code and one of the ordered registration tables, and the input code is decoded to select a sub-table within the code table, and the registration table within the sub-table is decoded. If the code corresponds to the registration code designated as the input code, the first code in the sub-table is calculated according to the order of the registration table and converted into the registration code.

以下本発明を実施例につき詳述する。The present invention will be described in detail below with reference to examples.

第2図は本発明の実施例の構成を示す説明図である。FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention.

第1図のキーボード1を操作しそれぞれの座標コードを
コードテーブル2により文字コードに変換するが、この
文字コードはたとえば16進の順位コードより成る2バ
イトのインタフエイスコードであるとする。
The keyboard 1 shown in FIG. 1 is operated to convert each coordinate code into a character code using the code table 2. It is assumed that this character code is, for example, a 2-byte interface code consisting of a hexadecimal rank code.

このインタフェースコートをレジスタ11に上位バイト
と下位バイトに分けて記憶させる。そして土位バイト8
ビツト信号1をコードテーブル12に送り256個のサ
ブテーブルの1つを選択する。第3図A,bは上述のサ
ブテーブル20の詳細説明図である。
This interface code is stored in the register 11 divided into an upper byte and a lower byte. And rank part-time job 8
Send bit signal 1 to code table 12 to select one of 256 sub-tables. FIGS. 3A and 3B are detailed explanatory diagrams of the above-mentioned sub-table 20.

同図aにおいて、サブテーブル20は2バイトの先頭コ
ード22と文字発生器の登録文字に対する2バイトの登
録テーブル23を順位に並べた16組210〜2115
を含み、この16組の領域をレジスタ11の下位バイト
のうちの4ビツト信号2により選択する。
In the same figure a, the sub-table 20 has 16 sets 210 to 2115 in which the 2-byte leading code 22 and the 2-byte registration table 23 for registered characters of the character generator are arranged in order.
These 16 sets of areas are selected by the 4-bit signal 2 of the lower byte of the register 11.

そして選択されたサブテーブル20の先頭コード22と
登録テーブル23の内容を出力する。登録テーブル23
の内容は同図bに例示するように、文字発生器の文字登
録コードがそれぞれに格納されている。たとえば、ビツ
ト順位m(m=0〜15)が゛1゛の時にほ登録コード
が有る場合、80゛の時は無い場合を示す。従つて、レ
ジスタ11に記憶されているインタJ■■登録テーブル
のビツト順位mを指定するものとし、この数値カウント
1をコードテーブル12から出力される第3図bの登録
テーブルの内容とともに演算回路(1)13に送る。こ
こで、カウント1のmに該当するビットが゛1゛であれ
ばインタフエイ′スコードに指定された登録コードが有
る場合であるから、登録テーブル23をカウント1の値
だけ左へシフトし、カウント1に相当するビツト以前に
ビツトが“1゛゜であるものが何個あるかを計数する。
Then, the leading code 22 of the selected sub-table 20 and the contents of the registration table 23 are output. Registration table 23
As shown in FIG. 2B, the character registration code of the character generator is stored in each of the characters. For example, when the bit order m (m=0 to 15) is 1, there is a registration code, and when it is 80, there is no registration code. Therefore, the bit order m of the Inter J■■ registration table stored in the register 11 is specified, and this numerical value count 1 is used together with the contents of the registration table shown in FIG. (1) Send to 13. Here, if the bit corresponding to m of count 1 is "1", it means that there is a registration code specified in the interface code, so the registration table 23 is shifted to the left by the value of count 1, and Count how many bits are ``1'' before the bit corresponding to .

そのカウント値2を前述のコードテーブル12から出力
される先頭コードとともに演算回路([[)14に送り
、ここで次式に示すように加算することにより文字の内
部コードとして出力する。内部コード一先頭コード+カ
ウント値2もし、演算回路(1)13において登録テー
ブルのカウント1のmに対応するビツトが゛O′゛であ
ると、インタフエイスコードに指定された登録コードが
無い場合であるから、演算回路(1)13から登録コー
ド無しの信号を出力し、たとえば他の文字発生器の処理
に移すように制御される。
The count value 2 is sent to the arithmetic circuit ([[) 14 together with the first code outputted from the code table 12 described above, where they are added as shown in the following equation and output as an internal code of the character. Internal code - start code + count value 2 If the bit corresponding to m of count 1 in the registration table in the arithmetic circuit (1) 13 is ゛O'゛, there is no registration code specified in the interface code. Therefore, the arithmetic circuit (1) 13 outputs a signal without a registration code, and is controlled to proceed to processing by, for example, another character generator.

以上説明したように、本発明によれば、複数サブテーブ
ルに区分したコードテーブルを用い、人力コードでサブ
テーブルを選択し、該サブテーブル内の先頭コードを入
力コードで指定された登録コードに該当する登録テーブ
ルの順位に応じて演算し、別のコードたとえば内部コー
ドに変換するものである。
As explained above, according to the present invention, a code table divided into a plurality of sub-tables is used, a sub-table is selected by manual code, and the first code in the sub-table corresponds to the registered code specified by the input code. The code is calculated according to the order of the registration table and converted into another code, for example, an internal code.

これにより、たとえば順位のインタフエイスコードを入
力し、指定された登録コードのみを選択して内部コード
に変換する手段として、比較的少ない記憶容量のコード
テーブルを用いて行なうことができる。さらに、このコ
ードテーブルはコード変換機能を有するとともに変換ざ
れるべきコードが有るか無いかという選択機能を併有さ
せたものであり、両方の機能を変換機能だけの場合と同
等の記憶容量と所要時間で効率的に処理することができ
る。
Thereby, for example, a code table with a relatively small storage capacity can be used as a means for inputting a ranking interface code, selecting only the specified registration code, and converting it into an internal code. Furthermore, this code table has a code conversion function as well as a selection function to select whether there is a code to be converted or not, and both functions can be combined with the same storage capacity and requirements as the conversion function alone. It can be processed efficiently in time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は従来例の構成説明図、第2図は本発明の実施例
の構成を示す説明図、第3図A,bは第2図の実施例の
要部の説明図であり、図中、11はレジスタ、12はコ
ードテーブル、13,14は演算回路、20はサブテー
ブル、210〜2115は組、22は先頭内部コード、
23は登録テーブルを示す。
FIG. 1 is an explanatory diagram of the configuration of a conventional example, FIG. 2 is an explanatory diagram of the configuration of an embodiment of the present invention, and FIGS. 3A and 3B are explanatory diagrams of main parts of the embodiment of FIG. Inside, 11 is a register, 12 is a code table, 13 and 14 are arithmetic circuits, 20 is a sub table, 210 to 2115 are sets, 22 is a leading internal code,
23 indicates a registration table.

Claims (1)

【特許請求の範囲】[Claims] 1 入力コードをコードテーブルを用いて指定された登
録コードに変換して出力するコード変換方式において、
前記コードテーブルが複数のサブテーブルより成り、各
サブテーブルはそれぞれ先頭コードと順位に並べた登録
テーブルの1つより成る複数の組を含み、前記入力コー
ドをデコードして前記コードテーブル内のサブテーブル
を選択し、さらに該サブテーブル内の登録テーブルが入
力コードに指定された登録コードに該当するものであれ
ば、該サブテーブル内の先頭コードを登録テーブルの順
位に応じて演算して登録コードに変換することを特徴と
するコード変換方式。
1 In a code conversion method that converts an input code into a specified registered code using a code table and outputs it,
The code table is comprised of a plurality of sub-tables, each sub-table including a plurality of sets each consisting of a first code and one of the registered tables arranged in order, and the input code is decoded and the sub-tables in the code table are decoded. If the registration table in the sub-table corresponds to the registration code specified in the input code, the first code in the sub-table is calculated according to the order of the registration table and becomes the registration code. A code conversion method characterized by conversion.
JP55024707A 1980-02-29 1980-02-29 Code conversion method Expired JPS5939048B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55024707A JPS5939048B2 (en) 1980-02-29 1980-02-29 Code conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55024707A JPS5939048B2 (en) 1980-02-29 1980-02-29 Code conversion method

Publications (2)

Publication Number Publication Date
JPS56123036A JPS56123036A (en) 1981-09-26
JPS5939048B2 true JPS5939048B2 (en) 1984-09-20

Family

ID=12145638

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55024707A Expired JPS5939048B2 (en) 1980-02-29 1980-02-29 Code conversion method

Country Status (1)

Country Link
JP (1) JPS5939048B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0233951Y2 (en) * 1982-11-11 1990-09-12

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6252627A (en) * 1985-09-02 1987-03-07 Hitachi Ltd Data input device
JPS6299826A (en) * 1985-10-25 1987-05-09 Mitsubishi Electric Corp Data selecting and converting system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0233951Y2 (en) * 1982-11-11 1990-09-12

Also Published As

Publication number Publication date
JPS56123036A (en) 1981-09-26

Similar Documents

Publication Publication Date Title
JPS5939048B2 (en) Code conversion method
JPH06195163A (en) Information processor
JPS5939049B2 (en) Code conversion method
US5798721A (en) Method and apparatus for compressing text data
JP2001265505A (en) Character input device for electronic equipment
JPH0135353B2 (en)
JPS6069724A (en) Kana character input device
JPS592935B2 (en) multiplication circuit
JPS63128468A (en) Character input device
JP2698836B2 (en) Data converter
JPS5887647A (en) Output device for menu
JP3298969B2 (en) Color code conversion method between input / output devices
JP2972916B2 (en) Document editing device with ruled line output function
JPH01183765A (en) Document editing device
JPH0511922A (en) Information processor
JPH03201761A (en) Caller command adding device
JPS59184941A (en) Kanji code converting method
JP3185945B2 (en) Circuit synthesis device
JP2889431B2 (en) Character processor
JPS61152147A (en) Electronic equipment
JPH01303569A (en) Data processor for logic circuit graphic data information
JPH0157381B2 (en)
JPS6135558B2 (en)
JP2001051991A (en) Japanese input method and portable terminal
JPH08297658A (en) Method and device for rearranging japanese characters