JPS62256120A - Key-in controller - Google Patents

Key-in controller

Info

Publication number
JPS62256120A
JPS62256120A JP61099723A JP9972386A JPS62256120A JP S62256120 A JPS62256120 A JP S62256120A JP 61099723 A JP61099723 A JP 61099723A JP 9972386 A JP9972386 A JP 9972386A JP S62256120 A JPS62256120 A JP S62256120A
Authority
JP
Japan
Prior art keywords
key
escape
code
buffer
sequence
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.)
Granted
Application number
JP61099723A
Other languages
Japanese (ja)
Other versions
JP2661013B2 (en
Inventor
Nobuo Nishikawa
信男 西川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP61099723A priority Critical patent/JP2661013B2/en
Publication of JPS62256120A publication Critical patent/JPS62256120A/en
Application granted granted Critical
Publication of JP2661013B2 publication Critical patent/JP2661013B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To improve operability by providing a code output means outputting a corresponding escape sequence by depressing an escape key and a code conversion means converting the escape sequence of the escape key into an escape code. CONSTITUTION:The titled controller can improve the operability of key-in in such a way that a key-in controller equipped with the escape key and a programmable function key handles the escape key by means of the escape sequence just like the programmable function key. Namely, if the code output means 20 depressed the escape key ESC, the escape sequence corresponding to the escape key is outputted, and the code conversion means 21 converts the escape sequence of the escape key, which is outputted from the code output means, into the escape code. Thus the escape key and the programmable function key have no limit in terms of operability, whereby the burden imposed on an operator can be lightened and the operability can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、キー入力制御装置に関し、特にエスケープキ
ーとプログラマブルファンクションキーとを備えたキー
入力制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a key input control device, and particularly to a key input control device equipped with an escape key and a programmable function key.

〔発明の概要〕[Summary of the invention]

本発明は、エスケープキーとプログラマブルファンクシ
ョンキーとを備えたキー入力制御装置において、エスケ
ープキーをプログラマブルファンクションキーと同様に
エスケープシーケンスで取り扱うことによってキー入力
の操作性を向上させるようにしたものである。
The present invention is a key input control device equipped with an escape key and a programmable function key, in which the operability of key input is improved by handling the escape key in an escape sequence in the same way as the programmable function key.

〔従来の技術〕[Conventional technology]

第5図は、エスケープキーとプログラマブルファンクシ
ョンキーとを備えたキー入力制御装置を示している。
FIG. 5 shows a key input control device with an escape key and programmable function keys.

第5図において、キーボードlは、エスケープキーES
Cおよび他のコード出力キーA、B、  ・・・Zを備
えたコード出力キ一部12と、ファンクションキーPF
I、PF2.− ・・PFnを備えたファンクションキ
一部13、即ちエスケープシーケンス出カキ一部とから
なっている。コード出力回路2は、キーボード1のコー
ド出力キ一部12或いはファンクションキ一部13にお
いてキーが押下されたときに、押下されたキーをファン
クションキーテーブル3或いはキーコードテーブル4を
参照して所定のコード即ちエスケープシーケンス或いは
キーコードに変換し、これをキーバッファ5に格納する
。入力制御回路8は、コード出力回路2によってキーバ
ッファ5に格納されたキーコード或いはエスケープシー
ケンスを一文字づつキーバッファ5から読取ってコード
バッファ6に格納する。次いで入力制御回路8は、コー
ドバッファ6のキーコード或いはエスケープシーケンス
をストリングバッファ7に順次格納し、これとエスケー
プシーケンス変換テーブル9に登録されているエスケー
プシーケンスとを比較する。エスケープシーケンス変換
テーブル9を検索して該当するエスケープシーケンスを
検出したときには、該エスケープシーケンスに対応した
変換コードを変換コード出力としてプロセッサ14に出
力するようになっている。なお、エスケープシーケンス
変換テーブル9を検索した結果、該当するエスケープシ
ーケンスが検出されないときには、即ちストリングバッ
ファ内に格納されているコードがキーコードであるとき
には、コードバッファ6内に格納されているコードを何
ら変換せずにプロセッサ14へ出力する。
In FIG. 5, the keyboard l has an escape key ES.
C and other code output keys A, B, . . . Z, and a function key PF.
I, PF2. - It consists of a function key section 13 with PFn, ie, an escape sequence output section. When a key is pressed on the code output key part 12 or the function key part 13 of the keyboard 1, the code output circuit 2 refers to the function key table 3 or the key code table 4 to output the pressed key to a predetermined value. It is converted into a code, ie, an escape sequence or a key code, and stored in the key buffer 5. The input control circuit 8 reads the key code or escape sequence stored in the key buffer 5 by the code output circuit 2 character by character from the key buffer 5 and stores it in the code buffer 6. Next, the input control circuit 8 sequentially stores the key codes or escape sequences in the code buffer 6 in the string buffer 7 and compares them with the escape sequences registered in the escape sequence conversion table 9. When the escape sequence conversion table 9 is searched and a corresponding escape sequence is detected, a conversion code corresponding to the escape sequence is output to the processor 14 as a conversion code output. Note that when the corresponding escape sequence is not detected as a result of searching the escape sequence conversion table 9, that is, when the code stored in the string buffer is a key code, the code stored in the code buffer 6 is not changed. It is output to the processor 14 without conversion.

ところで、このようなキー入力制御装置においては、従
来、コード出力回路2は、キーボード1のコード出力キ
一部12のいずれかのコード出力キーが押下されたとき
に、キーコードテーブル4を検索して所定のキーコード
に変換し、またキーボード1のファンクションキ一部1
3のいずれかのプログラマブルファンクションキーが押
下されたときには、ファンクションキーテーブル3を検
索して所定のエスケープシーケンスに変換するようにな
っていた。このために、コード出力キ一部12のエスケ
ープキーESC1並びに他のコード出力キーA、B、 
 ・・・Zは第6図(b)に示すようにキーコードテー
ブル4−1に登録され、エスケープキーESCをエスケ
ープコード’IBg (16進)に対応させ、他のコー
ド出力キーA、B、  ・・・Zをコード’41q、’
42’、  ・・・15A’に対応させていた。また、
ファンクションキ一部13のプログラマブルファンクシ
ョンキーPFI、PF2、・・・PFnは、第6図(a
)に示すようにファンクションキーテーブル3−1に登
録され、これらプログラマブルファンクションキーPF
I、PF2.  ・・・PFnをそれぞれエスケープシ
ーケンス’ IB (01/〜)  ’、  ’IB 
(02/〜〕 9.・・・’ IB (10/〜〕 9
に対応させていた。
By the way, in such a key input control device, conventionally, the code output circuit 2 searches the key code table 4 when any code output key of the code output key portion 12 of the keyboard 1 is pressed. Convert the key code to the specified key code, and also convert the function key part 1 of the keyboard 1 to the specified key code.
When any of the programmable function keys 3 is pressed, the function key table 3 is searched and converted into a predetermined escape sequence. For this purpose, the escape key ESC1 of the code output key part 12 and the other code output keys A, B,
...Z is registered in the key code table 4-1 as shown in FIG. 6(b), and the escape key ESC is made to correspond to the escape code 'IBg (hexadecimal), and other code output keys A, B, ...Code Z '41q,'
42', ...15A'. Also,
The programmable function keys PFI, PF2, ... PFn of the function key part 13 are shown in FIG.
), these programmable function keys PF are registered in the function key table 3-1 as shown in FIG.
I, PF2. ... PFn as escape sequences 'IB (01/~)', 'IB
(02/~) 9....' IB (10/~) 9
It was made to correspond to

このように、プログラマブルファンクションキーだけを
エスケープシーケンスとして取り扱う場合に、エスケー
プシーケンスをコード変換してプロセッサ14に出力す
るのに用いられるエスケープシーケンス変換テーブル9
−1には第6図(C1に示すように、第6図(a)のフ
ァンクションキーテーブルに登録されているエスケープ
シーケンス、即ち718〔01/〜00) ’、 ’I
B CO2/〜00)’、  ・・・’ 1B (10
/〜00)  ”  (なお、OOはエスケープシーケ
ンスの最後を表示するための識別文字である)に対応し
た変換コード’101  g、  ’102  v。
In this way, when only programmable function keys are handled as escape sequences, the escape sequence conversion table 9 is used to convert the code of the escape sequence and output it to the processor 14.
-1 contains the escape sequences registered in the function key table of FIG. 6(a), i.e., 718[01/~00)','I
B CO2/~00)', ...' 1B (10
/~00)" (Note that OO is an identification character for displaying the end of the escape sequence) conversion codes '101 g, '102 v.

’IOA’だけが登録されており、従って、プロセッサ
14にはキーボーF1のファンクションキ一部13のプ
ログラマブルファンクションキーPF1、PF2.  
・・・PFnのいずれか押下されたときにのみコード変
換がなされ出力されるようになっていた。
Only 'IOA' is registered, so the processor 14 has programmable function keys PF1, PF2 .
...The code was converted and outputted only when one of PFn was pressed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、上記従来の装置では、コード出力キ一部
12のエスケープキーESCが押下されたときのエスケ
ープコードJB9と、ファンクションキ一部13のプロ
グラマブルファンクションキーPFI、PF2.  ・
−・、PFnのいずれかが押下されたときのエスケープ
シーケンスの先頭コード91B’とが同じであるために
、コード’IB”がコードバッファ6に格納されたとき
入力制御回路8はこれがエスケープキーESCの押下に
よるエスケープコードであるのか、或いはプログラマブ
ルファンクションキーのエスケープシーケンスの先頭コ
ードであるのか判断することができない。
However, in the above conventional device, the escape code JB9 when the escape key ESC of the code output key section 12 is pressed, and the programmable function keys PFI, PF2 .・
- Since the first code 91B' of the escape sequence when either of It is not possible to determine whether this is an escape code caused by pressing , or the first code of an escape sequence of a programmable function key.

このために従来では、エスケープキーESC押下或いは
プログラマブルファンクションキー押下のいずれによる
ものであるかを識別させるのに以下のように操作に制限
を加えていた。
For this reason, in the past, in order to identify whether the escape key ESC was pressed or the programmable function key was pressed, the following restrictions were added to the operation.

(1)  操作においてエスケープキーESCとプログ
ラマブルファンクションキーPFI、PF2゜・・・P
Fnを同時に使用しない。
(1) During operation, escape key ESC and programmable function keys PFI, PF2゜...P
Do not use Fn at the same time.

(2)エスケープキーESCの処理は次に押下され入力
されるキーによって処理される。
(2) Escape key ESC processing is performed by the next pressed and input key.

(31(2)の場合にはエスケープキーESCだけを入
力したときには処理がなされないので、エスケープキー
ESCを入力した後時間監視を行い所定時間経過後エス
ケープキーESCと判断する。
(In the case of 31(2), no processing is performed when only the escape key ESC is input, so the time is monitored after the escape key ESC is input, and it is determined that the escape key ESC is activated after a predetermined period of time has elapsed.

(1)、 (21,或いは(3)の処理によって、確か
にエスケープキーESC押下の場合とプログラマブルフ
ァンクションキーPF1.PF2.  ・・・・PFn
のいずれかを押下した場合とを識別することは可能とな
るが、+1)或いは(2)の処理では、キー操作に一定
の制限を課しているので操作性を著しく損なう。また(
3)の処理においても、エスケープキーESC入力後は
所定の時間経過後火のキーを入力しないとプログラマブ
ルファンクションキーと誤認されるおそれがある上、プ
ロセッサの負荷等によってエスケープシーケンスの一文
字一文字を読取る処理に時間がかかると、プログラマブ
ルファンクションキーとして処理されないという問題が
あった。
By processing (1), (21, or (3)), it is true that the escape key ESC is pressed and the programmable function keys PF1.PF2....PFn
However, in the +1) or (2) processes, certain restrictions are imposed on key operations, which significantly impairs operability. Also(
In the process of 3), if the fire key is not input after a predetermined period of time after inputting the escape key ESC, there is a risk that it will be mistaken as a programmable function key, and the process of reading each character of the escape sequence depending on the processor load etc. There was a problem that if it took a long time to process the key, it would not be processed as a programmable function key.

本発明は、エスケープキーとプログラマブルファンクシ
ョンキーとに操作上の制限がなく、オペレータの負担を
軽減し操作性の向上を図るキー入力制御装置を提供する
ことを目的としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide a key input control device that has no operational restrictions on escape keys and programmable function keys, reduces the burden on the operator, and improves operability.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明のブロック図である。同図において、2
0はエスケープキーESCを押下したときに例えばファ
ンクションキーテーブルに登録されているエスケープキ
ーESCに対応したエスケープシーケンスを出力するコ
ード出力手段、21は、該コード出力手段20から出力
されたエスケープシーケンスを、例えば−文字づつコー
ドバッファに格納し、さらにコードバッファからストリ
ングバッファに転送して、ストリングバッファに転送さ
れた内容と、エスケープシーケンス変換テーブルに登録
されているエスケープシーケンスの内容とを比較して一
致した場合には該変換テーブルから変換コードを読出し
てエスケープコードに変換するコード変換手段である。
FIG. 1 is a block diagram of the present invention. In the same figure, 2
0 is a code output means for outputting an escape sequence corresponding to the escape key ESC registered in the function key table when the escape key ESC is pressed; 21 is an escape sequence output from the code output means 20; For example, - store characters one by one in a code buffer, then transfer them from the code buffer to a string buffer, and compare the contents transferred to the string buffer with the contents of the escape sequence registered in the escape sequence conversion table to find a match. In this case, it is a code conversion means that reads a conversion code from the conversion table and converts it into an escape code.

〔作   用〕[For production]

本発明の作用について説明すると、コード出力手段20
によってエスケープキーESCが押下された場合に該エ
スケープキーに対応するエスケープシーケンスを出力し
、コード変換手段21によって、コード出力手段から出
力されるエスケープキーのエスケープシーケンスをエス
ケープコードに変換している。
To explain the operation of the present invention, the code output means 20
When the escape key ESC is pressed, an escape sequence corresponding to the escape key is output, and the code conversion means 21 converts the escape sequence of the escape key output from the code output means into an escape code.

〔実  施  例〕〔Example〕

(1)構 成 本発明のキー入力制御装置は、第2図に示すようなシス
テム構成をしている。
(1) Configuration The key input control device of the present invention has a system configuration as shown in FIG.

第2図に示す構成の装置においてキーボード1、コード
出力回路2、キーバッファ5、コードバッファ6、スト
リングバッファ7、入力制御回路8、エスケープシーケ
ンス変換テーブル9、およびプロセッサ14は従来の装
置と同様の構成をしているので、これらの説明は省略す
る。
In the device configured as shown in FIG. 2, the keyboard 1, code output circuit 2, key buffer 5, code buffer 6, string buffer 7, input control circuit 8, escape sequence conversion table 9, and processor 14 are the same as in the conventional device. Since the configuration is already explained, the explanation of these items will be omitted.

第2図かられかるように、本発明の装置は従来の構成と
は異なるファンクションキーテーブル3−2、キーコー
ドテーブル4−2、及びエスケープシーケンス変換テー
ブル9−2を備えており、コード出力キ一部12のエス
ケープキーESCはキーコードテーブル4−2ではなく
ファンクションキーテーブル3−2に登録され、エスケ
ープシーケンスとして取り扱われている。これによって
、コード出力キ一部12のエスケープキーESCを、フ
ァンクションキ一部13のプログラマブルファンクショ
ンキーPFI、PF2.  ・・・PFnと同等に取り
扱い、エスケープキーESCをエスケープシーケンス”
 IB (36/〜〕 9に対応させ、プログラマブル
ファンクションキーPFI、PF2゜・・・PFnをそ
れぞれエスケープシーケンス″’ 18 (01/〜)
  ’、  ’IB (02/〜〕 7.・・・91B
〔10/〜〕 9に対応させてエスケープキーESCの
エスケープシーケンスとプログラマブルファンクション
キー PFI、PF2.  ・・・PFnのエスケープ
シーケンスとを区別している。また、キーコードテーブ
ル4−2にはコード出力キ一部12のエスケープキーE
SC以外のコード出力キーA、B、  ・・・Zだけが
登録され、それぞれJISコード’41’、  ’42
’、  ・・・95^ 9(16進)が対応づけされて
いる。
As can be seen from FIG. 2, the device of the present invention is equipped with a function key table 3-2, a key code table 4-2, and an escape sequence conversion table 9-2, which are different from the conventional configuration. Some of the 12 escape keys ESC are registered in the function key table 3-2 instead of the key code table 4-2, and are treated as escape sequences. This allows the escape key ESC in the code output key section 12 to be changed to the programmable function keys PFI, PF2 . ...Treat it the same as PFn, and use the escape key ESC as an escape sequence.”
The programmable function keys PFI, PF2゜...PFn are made to correspond to IB (36/~) 9, and the escape sequence "'" 18 (01/~)
', 'IB (02/~) 7....91B
[10/~] Escape key ESC escape sequence and programmable function keys PFI, PF2. ...is distinguished from the PFn escape sequence. In addition, the key code table 4-2 also includes the escape key E in part 12 of the code output keys.
Only code output keys A, B, ...Z other than SC are registered, and have JIS codes '41' and '42, respectively.
', ...95^ 9 (hexadecimal) is associated.

ファンクションキーテーブルとキーコードテーブルとを
第2図に示すファンクションキーテーブル3−2とキー
コードテーブル4−2とにすることによって、キーボー
ド1からエスケープキーESCが押下されるとコード出
力回路2はファンクションキーテーブル3−2を検索し
てキーバッファ5にエスケープシーケンス’ IB (
36/〜〕 1を格納する。またキーボード1からプロ
グラマブルファンクションキー、例えばPFIが押下さ
れるとコード出力回路2は従来と同様ファンクションキ
ーテーブル3−2を検索してキーバッファ5にエスケー
プシーケンスvIB (01/〜〕 7を格納する。
By setting the function key table and key code table to the function key table 3-2 and key code table 4-2 shown in FIG. 2, when the escape key ESC is pressed from the keyboard 1, the code output circuit 2 Search the key table 3-2 and write the escape sequence 'IB (
36/~] 1 is stored. Further, when a programmable function key such as PFI is pressed on the keyboard 1, the code output circuit 2 searches the function key table 3-2 and stores the escape sequence vIB (01/~)7 in the key buffer 5 as in the conventional case.

また、第2図に示すように、エスケープシーケンス変換
テーブル9−2には、ファンクションキーテーブル3−
2に対応させてプログラマブルファンクションキーPF
I、PF2.  ・・・・PFloのエスケープシーケ
ンス’ IB (01/〜00)’。
In addition, as shown in FIG. 2, the escape sequence conversion table 9-2 includes the function key table 3-2.
Programmable function key PF corresponding to 2
I, PF2. ...PFlo escape sequence 'IB (01/~00)'.

’ IB (02/〜001’、  ・・・・’ IB
 (10/〜00〕1がアドレスCNVP+ES、CN
VP+2XES。
' IB (02/~001', ...' IB
(10/~00] 1 is address CNVP+ES, CN
VP+2XES.

・・・・CNVP+10xESの位置から登録され、こ
れらにそれぞれ変換コード’101 ’、  ’102
 ’。
...Registered from the position of CNVP+10xES, and the conversion codes '101' and '102' are added to these, respectively.
'.

・・・・’IOA’が対応づけされている。また、これ
らのプログラマブルファンクションキーPF1、PF2
.  ・・・・PFIOとともに、エスケープキーES
Cのエスケープシーケンス’ IB (36/〜00〕
7がアドレスCNVPの位置から登録され、これに変換
コード’OIB’が対応づけされている。ここで、CN
VPはエスケープシーケンス変換テーブル9−2の先頭
アドレスであり、ESは、変換テーブル9−2に登録さ
れた1つのエスケープシーケンス並びに変換コードの大
きさを表わしている。
...'IOA' is associated. In addition, these programmable function keys PF1 and PF2
.. ...Escape key ES along with PFIO
C escape sequence' IB (36/~00)
7 is registered from the position of address CNVP, and a conversion code 'OIB' is associated with this. Here, C.N.
VP is the start address of the escape sequence conversion table 9-2, and ES represents the size of one escape sequence and conversion code registered in the conversion table 9-2.

エスケープシーケンス変換テーブル9を第2図に示すエ
スケープシーケンス変換テーブル9−2にすることによ
って、入力制御回路8は、キーバッファ5にエスケープ
キーESCのエスケープシーケンス’ 18 (36/
〜〕 1が格納されている場合、これを変換テーブル9
−2で検索して、エスケープコード’OIB’に変換し
てプロセッサ14に出力し、キーバッファ5にプログラ
マブルファンクションキー、例えばPFIのエスケープ
シーケンス91B (01/〜〕 9が格納されている
場合には、従来と同様にして変換テーブル9−2で検索
し、所定の変換コード°1019に変換してプロセッサ
14に出力することができる。
By changing the escape sequence conversion table 9 to the escape sequence conversion table 9-2 shown in FIG.
~] If 1 is stored, convert it to conversion table 9
-2, converts it to the escape code 'OIB' and outputs it to the processor 14, and if the key buffer 5 stores a programmable function key, for example, PFI escape sequence 91B (01/~) 9. , it is possible to search the conversion table 9-2 in the same way as in the past, convert it into a predetermined conversion code 01019, and output it to the processor 14.

なお、第2図において、キーバッファ5はエスケープシ
ーケンスを格納しうる大きさのものであり、コードバッ
ファ6は一文字分のコードを格納する大きさを持ち、ス
トリングバッファ7はエスケープシーケンスとさらにエ
スケープシーケンスの最後を識別するための文字’ o
o qとを格納しうる大きさのものでなければならない
。また、入力制御回路8は変換処理を行う際に用いられ
るテーブルポインタ10とテーブルカウンタ11とを備
えている。
In FIG. 2, the key buffer 5 is large enough to store an escape sequence, the code buffer 6 is large enough to store a code for one character, and the string buffer 7 is large enough to store an escape sequence. The letter ' o to identify the end of
It must be large enough to store oq. The input control circuit 8 also includes a table pointer 10 and a table counter 11 used when performing conversion processing.

また、第2図において、コード出力回路2、ファンクシ
ョンテーブル3−2、キーコードテーブル4−2および
キーバッファ5が第1図のコード出力手段20を構成し
、コードバッファ6、ストリングバッファ7、入力制御
回路8およびエスケープシーケンス変換テーブル9−2
が第1図のコード変換手段21を構成している。
Further, in FIG. 2, the code output circuit 2, the function table 3-2, the key code table 4-2, and the key buffer 5 constitute the code output means 20 of FIG. Control circuit 8 and escape sequence conversion table 9-2
constitutes the code conversion means 21 in FIG.

(2)動 作 以上のような構成のキー入力制御装置において、本発明
の装置の動作を第3図および第4図を用いて説明する。
(2) Operation In the key input control device configured as described above, the operation of the device of the present invention will be explained with reference to FIGS. 3 and 4.

第3図は、キーボード1のエスケープキーESCを押下
したときの動作概要図である。
FIG. 3 is a schematic diagram of the operation when the escape key ESC of the keyboard 1 is pressed.

第3図で、キーボード1からエスケープキーESCが押
下されたときには(FLl)、コード出力回路2はファ
ンクションキーテーブル3−2を検索してエスケープキ
ーESCに対応するエスケープシーケンス’ IB (
36/〜〕 9をキーバッファ5に格納する(FL2)
。次いで入力制御回路8は、キーバッファ5に格納され
たエスケープシーケンス’ IB (36/〜〕 9の
最初の一文字’ IB gをキーバッファ5から読取っ
てコードバッファ6に格納しくFL3)、次いでこのコ
ード’IB’をストリングバッファ7に転送する(FL
4)。なお、ストリングバッファ7はこの処理の開始さ
れる前は全てクリア(’ 00 ’が格納)されている
ものとする。ストリングバッファ7に転送されたコード
が918?であることを判定すると、入力制御回路8は
キーバッファ5に格納されたコードがエスケープシーケ
ンスであると判断するので、このエスケープシーケンス
をエスケープシーケンス変換テーブル9−2に登録され
ているエスケープシーケンスのいずれのものに一致する
かを判定する処理を開始する。
In FIG. 3, when the escape key ESC is pressed from the keyboard 1 (FLl), the code output circuit 2 searches the function key table 3-2 and outputs the escape sequence 'IB (
36/~] Store 9 in key buffer 5 (FL2)
. Next, the input control circuit 8 reads the escape sequence 'IB (36/~)9' first character 'IB g stored in the key buffer 5 from the key buffer 5 and stores it in the code buffer 6 (FL3), and then reads this code. Transfer 'IB' to string buffer 7 (FL
4). It is assumed that the string buffer 7 is completely cleared ('00' is stored) before this process is started. Is the code transferred to string buffer 7 918? When the input control circuit 8 determines that the code stored in the key buffer 5 is an escape sequence, the input control circuit 8 converts this escape sequence into any of the escape sequences registered in the escape sequence conversion table 9-2. Starts the process of determining whether it matches.

入力制御回路8は、キーバッファ5に格納された次の文
字9 〔9を読出しコードバッファ6に格納しくFL3
)、これをストリングバッファに最初の文字q1afに
続いて”18(’のように格納しくFL5)、エスケー
プシーケンス変換テーブル9−2に登録されているエス
ケープシーケンスと部分的に比較する(FLIO)。比
較した結果、一致した場合には、キーバッファ5から次
の文字゛39を読取ってコードバッファ6に格納しくF
L3)、これをさらにストリングバッファの前に格納さ
たコード’IB(”の次に’IB(3’のように格納し
て(FL6)、これをエスケープシーケンス変換テーブ
ル9−2に登録されたエスケープシーケンスと比較する
(FLIO)。比較した結果、一致しない場合にはエス
ケープシーケンス変換テーブル9−2に登録されている
次のエスケープシーケンスと順次比較する。このように
して入力制御回路8は、キーバッファ5に格納されたエ
スケープシーケンスを一文字づつ(以下、v6w。
The input control circuit 8 reads out the next character 9 stored in the key buffer 5 and stores it in the code buffer 6.
), this is stored in the string buffer as "18 (') following the first character q1af (FL5), and is partially compared with the escape sequence registered in the escape sequence conversion table 9-2 (FLIO). As a result of the comparison, if they match, read the next character "39" from the key buffer 5 and store it in the code buffer 6.
L3), this is further stored in front of the string buffer as the code 'IB('', followed by 'IB(3') (FL6), and this is registered in the escape sequence conversion table 9-2. Compare with the escape sequence (FLIO). If the comparison results do not match, compare with the next escape sequence registered in the escape sequence conversion table 9-2. In this way, the input control circuit 8 The escape sequence stored in buffer 5 is written one character at a time (hereinafter referred to as v6w).

?/9%〜W)読取り (FL3)、これをストリング
バッファ7に順次格納して(FL7.FL8、FL9)
 、エスケープシーケンス変換テーブル9−2に登録さ
れたエスケープシーケンスと順次比較する(FLIO)
、入力制御回路8がキーバッファ5からg〜9を読取り
、コードバッファ6に格納しくFL3)、ストリングバ
ッファ7に格納して(FL9)、ストリングバッファ7
の内容が’ IB (36/〜〕 9となったときに(
ストリングバッファ7は処理開始前にクリアされている
ので’ IB (36/〜7の次には9007が格納さ
れている)、エスケープシーケンス変換テーブルにはこ
のエスケープシーケンスが登録されているので、入力制
御回路8はこのエスケープシーケンスに対応する変換コ
ード”OIB’をプロセッサ14へ出力する(FLII
)。
? /9%~W) Read (FL3), store this in string buffer 7 sequentially (FL7.FL8, FL9)
, sequentially compared with the escape sequences registered in the escape sequence conversion table 9-2 (FLIO)
, the input control circuit 8 reads g to 9 from the key buffer 5, stores them in the code buffer 6 (FL3), stores them in the string buffer 7 (FL9), and stores them in the string buffer 7.
When the content of ' IB (36/~) becomes 9, (
Since string buffer 7 is cleared before processing starts, 'IB' (9007 is stored next to 36/~7), and this escape sequence is registered in the escape sequence conversion table, so input control The circuit 8 outputs the conversion code "OIB" corresponding to this escape sequence to the processor 14 (FLII
).

このように、エスケープキーESCをエスケー・ブシー
ケンスとして取り扱うことによってエスケープキーES
Cとプログラマブルファンクシ田ンキーPF1.PF2
.・・・・PFnとの操作に何らの制限を設けずとも、
これらのキーを同時に使用することができて、さらにエ
スケープキーESCが押下されたときにはプロセッサ1
4に変換コードとしてエスケープコード”01B’を出
力することができ、プログラマブルファンクションキー
PFI、PF2.  ・・・・PFIOが押下されたと
きにはプロセッサ14に所定の変換コード’101  
’、  ”102 ’、  ・・・・’  IOA’を
出カスることができる。
In this way, by treating the escape key ESC as an escape sequence, the escape key ES
C and programmable function key PF1. PF2
..・・・・Without any restrictions on operations with PFn,
These keys can be used at the same time, and when the escape key ESC is pressed, processor 1
The escape code "01B" can be output as a conversion code to the processor 14, and when the programmable function keys PFI, PF2, .
', '102', ...'IOA' can be output.

次に、第4図のフローチャートを用いて、入力制御回路
8の変換処理をより詳細に説明する。
Next, the conversion process of the input control circuit 8 will be explained in more detail using the flowchart of FIG.

まず、キーバッファ5に格納されているエスケープシー
ケンス或いはキーコードの最初の一文字を読取りコード
バッファ6に格納する(STI)。
First, the first character of the escape sequence or key code stored in the key buffer 5 is read and stored in the code buffer 6 (STI).

次いで、処理の開始であるか或いは途中であるかを判断
するために、ストリングバッファ7の先頭がw009で
あるか否かを判断する(Sr1)、ストリングバッファ
7の先頭が9009である場合には処理の開始であるの
で、いま処理すべき内容がエスケープシーケンス或いは
キーコードのいずれであるかを判定するため、コードバ
ッファ6の内容がエスケープコード91B7であるか否
かを判断する(Sr3)。コードバッファ6の内容がエ
スケープコード91B1でない場合にはキーコードであ
るので、コードバッファ6の内容を何らの変換もせずに
プロセッサ14に出力しく5T4)、次いでストリング
バッファ7をクリアして次に押下されるキーボード1か
らのキーに対する準備をするため再びSTIに戻る。
Next, in order to determine whether processing has started or is in progress, it is determined whether the beginning of string buffer 7 is w009 (Sr1). If the beginning of string buffer 7 is 9009, Since this is the start of the process, in order to determine whether the content to be processed now is an escape sequence or a key code, it is determined whether the content of the code buffer 6 is the escape code 91B7 (Sr3). If the contents of code buffer 6 are not escape code 91B1, it is a key code, so output the contents of code buffer 6 to processor 14 without any conversion (5T4), then clear string buffer 7 and press next. Return to STI again to prepare for the keys from keyboard 1 that will be sent.

コードバッファ6の内容がエスケープコード値’IB’
である場合には、変換処理を開始するためのパラメータ
初期設定を行う。即ち、ストリングバッファの先頭アド
レス値5TRPをアドレスレジスタ(図示せず)に格納
し、さらにエスケープシーケンス変換テーブル9−2の
先頭アドレス値CNVPを第2図に示すようなテーブル
ポインタ10に格納し、テーブルカウンタ11のカウン
ト値Nに初期値WQfを格納する(Sr5)。以下では
まず、キーボード1からエスケープキーESCが押下さ
れ、キーバッファ5にはエスケープシーケンス’ IB
 (36/〜〕 9が格納されているものとして説明す
る。
The contents of code buffer 6 is the escape code value 'IB'
If so, the parameters are initialized to start the conversion process. That is, the start address value 5TRP of the string buffer is stored in an address register (not shown), and the start address value CNVP of the escape sequence conversion table 9-2 is stored in the table pointer 10 as shown in FIG. The initial value WQf is stored in the count value N of the counter 11 (Sr5). In the following, first, the escape key ESC is pressed from keyboard 1, and the escape sequence 'IB' is stored in key buffer 5.
(36/~) The following description assumes that 9 is stored.

Sr5で初期設定を行った後、アドレスレジスタに格納
されたストリングバッファ7の先頭アドレス値5TRP
にテーブルカウンタ11のカウント値Nを加算したスト
リングバッファ7のアドレス位置5TRP+Nヘコード
バソフア6の内容を格納し、ストリングバッファ7の次
のアドレス位置5TRP+N+ 1にストリングバッフ
ァ7のアドレス位置5TRP+Hに、格納された内容が
現時点での最後のものであることを示す識別文字9−1
gを格納する(Sr1)。
After initial setting with Sr5, start address value 5TRP of string buffer 7 stored in address register
The contents of the code bus buffer 6 are stored in the address position 5TRP+N of the string buffer 7, which is obtained by adding the count value N of the table counter 11 to the address position 5TRP+N+1 of the string buffer 7. Identification character 9-1 indicating that is the current last one
g (Sr1).

いまの場合、テーブルカウンタ11のカウント値Nはw
Ovであり、コードバッファ6の内容はエスケープコー
ド’IB’であるので、ストリングバッファ7の先頭ア
ドレス位置5TRPにはエスケープコード91B9が格
納され、これに続くアドレス位zs’rRp+iには9
−19が格納されることになる。
In this case, the count value N of the table counter 11 is w
Ov, and the content of the code buffer 6 is the escape code 'IB', so the escape code 91B9 is stored in the first address position 5TRP of the string buffer 7, and the following address position zs'rRp+i is stored with the escape code 91B9.
-19 will be stored.

次いで、ストリングバッファ7に格納された内容とエス
ケープシーケンス変換テーブル9−2に登録されたエス
ケープシーケンスの内容とが一致しているか否かを調べ
るために、ストリングバッファ7のアドレス位WSTR
P+Hに格納されている内容と、変換テーブル9−2の
アドレス位置CNVP+Hに格納されている内容とを比
較する(Sr7)。
Next, in order to check whether the content stored in the string buffer 7 and the content of the escape sequence registered in the escape sequence conversion table 9-2 match, the address position WSTR of the string buffer 7 is
The content stored in P+H is compared with the content stored in address position CNVP+H of conversion table 9-2 (Sr7).

いまの場合、テーブルカウンタ11のカウント値Nは?
□Wであり、ストリングバッファ7の先頭アドレス位置
5TRPには11B9が格納され、変換テーブル9−2
の先頭アドレス位置CNVPにも’1B’が格納されて
いるので、比較の結果、内容は一致していることになり
、Sr8に進む。
In this case, what is the count value N of table counter 11?
□W, 11B9 is stored in the start address position 5TRP of the string buffer 7, and the conversion table 9-2
Since '1B' is also stored in the first address position CNVP, the comparison results show that the contents match, and the process proceeds to Sr8.

Sr8では、ストリングバッファの次のアドレス位置の
内容と、変換テーブル9−2の次のアドレス位置の内容
とを調べるために、テーブルカウンタ11のカウント値
Nを1+1v歩進させて(S78) 、Sr9に進む。
In Sr8, in order to check the contents of the next address position of the string buffer and the contents of the next address position of the conversion table 9-2, the count value N of the table counter 11 is incremented by 1+1v (S78), and Sr9 Proceed to.

Sr9では、変換テーブル9−2に登録されたエスケー
プシーケンスの最後の位置まで検索したか否かを調べる
ために、エスケープシーケンス変換テーブル9−2のア
ドレス位置CNVP+Nに9009が格納されているか
否かを調べる(Sr9)もし9009が格納されている
ならば、変換処理を終了し、プロセッサ14に変換コー
ドを出力するために5TIOに進み、9009が格納さ
れていないならば、さらに処理を進めるために5T13
に進む。
Sr9 checks whether 9009 is stored in the address position CNVP+N of the escape sequence conversion table 9-2 in order to check whether the search has reached the last position of the escape sequence registered in the conversion table 9-2. Check (Sr9) If 9009 is stored, proceed to 5TIO to end the conversion process and output the conversion code to the processor 14; if 9009 is not stored, proceed to 5T13 to proceed with further processing.
Proceed to.

いまの場合、テーブルカウンタ11のカウント値NはW
19になり、エスケープシーケンス変換テーブル9−2
のアドレス位1cNVP+1には9 〔7が格納されて
いるので、5T13に進む。
In this case, the count value N of the table counter 11 is W
19, escape sequence conversion table 9-2
Since 9 [7 is stored in the address position 1cNVP+1, the process advances to 5T13.

5T13では、ストリングバッファ7のアドレス位1s
TRP+Nの内容が1−IWであるか否かを調べ、9−
1gのときには、キーバッファ5からコードバッファ6
に次の文字を格納するため再びSTLに戻る。ストリン
グバッファ7のアドレス位l5TRP+Hの内容が9−
19でない場合が生ずるのは、後述のように、現在検索
中の変換テーブル9−2のエスケープシーケンスとスト
リングバッファのエスケープシーケンスとが一致せずこ
れによって変換テーブル9−2に登録され) ている次
のエスケープシーケンスを検索する処理の過程で起こる
。従って7−19でない場合には、後述のようにSr1
に再び戻って、Sr1.5T12、Sr8.Sr9の処
理を5TRP+Nの内容が1−17となるまで繰り返す
。いまの場合には、ストリングバッファ7のアドレス位
ff5TRP+1の内容は9−19であるので、再びS
TIに戻る。
In 5T13, address position 1s of string buffer 7
Check whether the content of TRP+N is 1-IW, and 9-
When 1g, key buffer 5 to code buffer 6
Returns to STL again to store the next character. The contents of address position l5TRP+H of string buffer 7 are 9-
19 occurs because, as described later, the escape sequence in the conversion table 9-2 currently being searched does not match the escape sequence in the string buffer. This occurs during the process of searching for escape sequences. Therefore, if it is not 7-19, Sr1
Returning again to Sr1.5T12, Sr8. The process of Sr9 is repeated until the content of 5TRP+N becomes 1-17. In this case, the contents of address position ff5TRP+1 of string buffer 7 are 9-19, so S
Return to T.I.

STIでは、91B9に続くキーバッファ5内の文字1
 〔9をコードバッファ6に設定する。ストリングバッ
ファ7の先頭アドレス位l5TRPには前の処理で91
87が格納されているので、”oo’ではなく、従って
Sr2では処理の開始ではないと判断してSr5の初期
設定ルーチンを介せずに直接ST6に進む。ST6以後
は、以前の処理と同様な処理が繰り返される。′即ちス
トリングバッファ7のアドレス位置5TRP+N、いま
の場合は5TRP+1に、コードバッファ6の内容7 
〔9を格納し、ストリングバッファ7の次のアドレス位
置5TRP+N+1、いまの場合は5TRP+2に、′
−IWを格納する。これによってストリングバッファに
は、’IB(−1’が格納されたことになる0次いで、
Sr1では、ストリングバッファ7のアドレス位置5T
RP+Nに格納された内容と、変換テーブル9−2のア
ドレス位置CNVP+Hに格納されている内容とを比較
する。いまの場合、ストリングバッファ7のアドレス位
置5TRP+1には9 〔9が格納され、変換テーブル
9−2のアドレス位置CN V P + 1にも° 〔
9が格納されているので、比較の結果一致し、Sr8に
進む。Sr8ではテーブルカウンタ11のカウント値N
を9+17だけ歩進させ929にする。次いで、Sr9
で変換テーブル9−2のアドレス位置CNVP+Nに格
納されている内容が’ oo ’であるか否かを判断す
る。いまの場合アドレス位ficNVP+2には9 〔
9が格納されているので’ oo ’ではなく、5T1
3に進む。5T13ではストリングバッファ7のアドレ
ス位置STRP +Nに7−1gが格納されているか否
かを澗ぺる。アドレス位置5TRP+2には確かにw 
−11が格納されているので、再びSTIに戻り、全く
同様の処理を繰り返してキーバッファ5に格納されてい
る文字?3?、?69.v/w。
In STI, character 1 in key buffer 5 following 91B9
[Set 9 in code buffer 6. The first address l5TRP of string buffer 7 contains 91 in the previous process.
Since 87 is stored, it is not "oo", and therefore Sr2 judges that it is not the start of processing, and proceeds directly to ST6 without going through the initial setting routine of Sr5.After ST6, the process is the same as the previous processing. The process is repeated.' That is, the address position 5TRP+N of string buffer 7, in this case 5TRP+1, and the content 7 of code buffer 6 are repeated.
[Stores 9 and moves to the next address location 5TRP+N+1 of string buffer 7, in this case 5TRP+2,'
- Store IW. As a result, 'IB(-1') is stored in the string buffer.
In Sr1, address position 5T of string buffer 7
The contents stored in RP+N are compared with the contents stored in address position CNVP+H of conversion table 9-2. In this case, 9 [9 is stored in the address position 5TRP+1 of the string buffer 7, and ° [9] is also stored in the address position CNVP+1 of the conversion table 9-2.
Since 9 is stored, the comparison results in a match and the process proceeds to Sr8. In Sr8, the count value N of the table counter 11
is incremented by 9+17 to become 929. Then, Sr9
Then, it is determined whether the content stored in the address position CNVP+N of the conversion table 9-2 is 'oo'. In this case, address position ficNVP+2 has 9 [
9 is stored, so instead of 'oo', it is 5T1
Proceed to step 3. At 5T13, it is determined whether or not 7-1g is stored in the address position STRP +N of the string buffer 7. The address location 5TRP+2 is definitely lol
-11 is stored, so return to STI again and repeat the exact same process to find the character stored in key buffer 5? 3? ,? 69. v/w.

マ〜”ヲー文字づつコードバッファ6に格納しく5TI
)、次いでストリングバッファのそれぞれのアドレス位
置5TRP+2,5TRP+3゜5TRP+4,5TR
P+5にこれらを格納しく5T6) 、エスケープシー
ケンス変換テーブル9−2のアドレス位置CNVP+2
.CNVP+3、CNVP+4.CNVP+5に格納さ
れている内容とそれぞれ比較しく5T7)、−Gしてい
るときにはSr8.Sr9,5T13に進む。
5TI to store each character in code buffer 6.
), then each address position 5TRP+2,5TRP+3°5TRP+4,5TR of the string buffer
Store these in P+5 (5T6), address position CNVP+2 of escape sequence conversion table 9-2.
.. CNVP+3, CNVP+4. Comparing with the contents stored in CNVP+5, 5T7) and -G, Sr8. Proceed to Sr9,5T13.

いま、文字? 31.  W 6 Z  9 /?にお
いて全て一致し、Sr1においてストリングバッファ7
のアドレス位1sTRP+5の内容が9〜gで、エスケ
ープシーケンス変換テーブル9−2のアドレス位置CN
VP+5の内容が7〜wで一致したとき、ST8におい
てテーブルカウンタ11のカウント値Nは969になり
、ST9においてエスケープシーケンス変換テーブル9
−2のアドレス位置CNVP+6の内容はVOWである
ので、このときにはストリングバッファ7に格納された
エスケープシーケンスとエスケープシーケンス変換テー
ブル9−2に登録されたエスケープシーケンスとが一致
したことを意味し、プロセッサ14へ変換コードを出力
するために5TIOへ進む。5TIOでは、エスケープ
シーケンスに対応するコード、いまの場合エスケープコ
ード”OIB’をプロセッサ14に出力する。次いで5
TIIでは、キーボード1から次に押下されるべきキー
に対する変換処理の’14(fMをするため、ストリン
グバッファ7をクリアして、再びSTIに戻る。
Text now? 31. W 6 Z 9 /? all match, and string buffer 7 in Sr1
The content of address position 1sTRP+5 is 9 to g, and the address position CN of escape sequence conversion table 9-2 is
When the contents of VP+5 match from 7 to w, the count value N of the table counter 11 becomes 969 in ST8, and the escape sequence conversion table 9 is converted in ST9.
Since the content of the address position CNVP+6 of -2 is VOW, this means that the escape sequence stored in the string buffer 7 and the escape sequence registered in the escape sequence conversion table 9-2 match, and the processor 14 Proceed to 5TIO to output the conversion code. 5TIO outputs the code corresponding to the escape sequence, in this case the escape code "OIB", to the processor 14.
In TII, the string buffer 7 is cleared to perform the conversion process '14 (fM) for the next key to be pressed on the keyboard 1, and the process returns to STI again.

次にキーボードlからプログラマブルファンクションキ
ー、例えばPFIが押下されたときの処理について説明
する。
Next, processing when a programmable function key such as PFI is pressed on the keyboard l will be described.

プログラマブルファンクションキーPFIが押下された
ときには、キーバッファ5にはエスケープシーケンス’
 IB COI/〜〕 1が格納される。ST1では、
このエスケープシーケンスの最初の文字は、エスケープ
コード’1B’であり、また次の文字は9 〔9であり
、これらは、エスケープキーESCのエスケープシーケ
ンス’ IB (36/〜〕 7の最初の2文字と同じ
であるので、前述したと同様の処理が行われる。
When the programmable function key PFI is pressed, the escape sequence ' is stored in the key buffer 5.
IB COI/~] 1 is stored. In ST1,
The first character of this escape sequence is the escape code '1B', and the next character is 9 [9], which are the first two characters of the escape sequence 'IB (36/~) 7 of the escape key ESC. Therefore, the same processing as described above is performed.

以下では、キーバッファ5に格納されたエスケープシー
ケンス’ IB (Of/〜〕 7の第3文字目、即ち
707からの処理について説明する。
In the following, processing from the third character, ie, 707, of the escape sequence 'IB (Of/~) 7 stored in the key buffer 5 will be explained.

第4図のSTIでは、キーバッファ5の第3文字目90
9を読み取り、これをコードバッファ6に格納する。S
T2ではストリングバッファ7の先頭がv009である
か否かを調べるが、いまストリングバッファ7の先頭に
はすでにエスケープコード’ 1B ’が格納されてい
るので、’ oo ’ではな(ST6へ進む。ST6で
は、コードバッファ6の内容″′09をストリングバッ
ファのアドレス位置5TRP+2に格納し、5TRP+
3に9−19を設定する。
In the STI of FIG. 4, the third character of key buffer 5 is 90.
9 is read and stored in the code buffer 6. S
At T2, it is checked whether the beginning of the string buffer 7 is v009, but since the escape code '1B' is already stored at the beginning of the string buffer 7, it is not 'oo' (proceed to ST6. ST6 Now, store the contents of code buffer 6 ``'09'' in the address position 5TRP+2 of the string buffer, and
Set 9-19 to 3.

次いで、ST7では、ストリングバッファ7のアドレス
位置5TRP+2の内容と、エスケープシーケンス変換
テーブル9−2のアドレス位置CNVP+2の内容とを
比較する。いま、ストリングバッファ7のアドレス位1
sTRP+2にはOvが格納され、変換テーブル9−2
のアドレス位置CNVP+2には937が格納されてい
る(変換テーブル9−2の先頭アドレス位置からはエス
ケープキーESCのエスケープシーケンス’ IB (
36/〜〕 1が格納されている。)ので、これらの内
容は一致しない。このときには、変換テーブル9−2に
登録されている次のエスケープシーケンスと一致するか
否かを比較するために5T12に進む。5T12では、
変換テーブル9−2のアドレス位WCNVPを次のエス
ケープシーケンスの登録されている先頭アドレス位置に
するために、現在の先頭アドレス位置CNVPにエスケ
ープシーケンス並びに変換コードの大きさESを加算し
た値を新たな変換テーブル9−2の先頭アドレス位置C
NVPとする。さらに変換テーブル9−2に登録されて
いる次のエスケープシーケンスとストリングバッファ7
に格納されたエスケープシーケンスとをその最初の文字
から比較するためテーブルカウンタ11のカウント値N
をクリアして、ST7に再び戻る。
Next, in ST7, the contents of the address position 5TRP+2 of the string buffer 7 and the contents of the address position CNVP+2 of the escape sequence conversion table 9-2 are compared. Now address position 1 of string buffer 7
Ov is stored in sTRP+2, and conversion table 9-2
937 is stored in the address position CNVP+2 of the conversion table 9-2 (from the first address position of the conversion table 9-2, the escape sequence 'IB (
36/~] 1 is stored. ), so these contents do not match. At this time, the process advances to 5T12 to compare whether or not it matches the next escape sequence registered in the conversion table 9-2. In 5T12,
In order to set the address position WCNVP in conversion table 9-2 to the start address position where the next escape sequence is registered, a new value is added to the current start address position CNVP by the escape sequence and the size ES of the conversion code. Start address position C of conversion table 9-2
It will be NVP. Furthermore, the next escape sequence and string buffer 7 registered in the conversion table 9-2
The count value N of the table counter 11 is compared with the escape sequence stored in the table starting from the first character.
Clear and return to ST7 again.

ST7では、ストリングバッファ7のアドレス位置5T
RPの内容と変換テーブル9−2のアドレス位置CNV
Pの内容とを比較する。いまの場合、ストリングバッフ
ァ7のアドレス位W S T RPの内容および変換テ
ーブル9−2のアドレス位置CNVPの内容はともにエ
スケープコード91B9であるので一致し、これらの次
のアドレス位置の内容を比較するために、テーブルカウ
ンタ11のカウント値Nを9+19だけ歩進させる(S
T8)。
In ST7, address position 5T of string buffer 7
Contents of RP and address position CNV of conversion table 9-2
Compare the contents of P. In this case, the contents of the address position WST RP of the string buffer 7 and the contents of the address position CNVP of the conversion table 9-2 are both escape code 91B9, so they match, and the contents of these next address positions are compared. Therefore, the count value N of the table counter 11 is incremented by 9+19 (S
T8).

次いで、ST9では変換テーブル9−2のアドレス位W
 CN V p + Nの内容が90″′であるか否か
を調べる。いまの場合、カウント値Nは719であり、
変換テーブル9−2のアドレス位置CNVP+1の内容
は9 〔7であるので 909ではなく、5T13に進
む。5T13では、ストリングバッファ7のアドレス位
置5TRP+Nの内容が9−19であるか否かを調べる
。いまの場合、ストリングバッファ7のアドレス位置5
TRP+1の内容は7 〔7であるのでt  1wでは
なく、Sr1に再び戻る。次いでSr1では、ストリン
グバッファ7の次のアドレス位置5TRP+1の内容と
変換テーブル9−2の次のアドレス位置CNVP+ 1
の内容とを比較する。ストリングバッファ7のアドレス
位置5TRP+1の内容は9〔9であり、変換テーブル
9−2のアドレス位WCNVP+ 1の内容も7 〔7
であるので一致し、Sr1に進む。以上のようにしてS
r1.Sr1,5T13で同様の処理がなされ、Sr1
に再び戻る。
Next, in ST9, the address position W of the conversion table 9-2 is
Check whether the content of CN V p + N is 90″′. In this case, the count value N is 719,
Since the content of the address position CNVP+1 of the conversion table 9-2 is 9 [7, the process proceeds to 5T13 instead of 909. At 5T13, it is checked whether the contents of address position 5TRP+N of string buffer 7 are 9-19. In this case, address position 5 of string buffer 7
Since the content of TRP+1 is 7 [7, the process returns to Sr1 instead of t1w. Next, in Sr1, the contents of the next address position 5TRP+1 of the string buffer 7 and the next address position CNVP+1 of the conversion table 9-2 are stored.
Compare the contents of The contents of address position 5TRP+1 of string buffer 7 are 9 [9, and the contents of address position WCNVP+1 of conversion table 9-2 are also 7 [7].
Therefore, they match, and the process proceeds to Sr1. As above, S
r1. Similar processing is performed on Sr1 and 5T13, and Sr1
Return to again.

いまSr1においてテーブルカウンタ11のカウント値
Nは929になっているので、Sr1でストリングバッ
ファ7のアドレス位1sTRP+2の内容と変換テーブ
ル9−2のアドレス位置CNVP+2の内容との比較が
なされる。今度は5TRP+2の内容およびCNVP+
2の内容ともv、 Owで一致しているので、Sr1に
進む。なお、プログラマブルファンクションキーPFI
Oが押下されている場合には5TRP+2の内容は71
9となるので、変換テーブル9−2のさらに次のエスケ
ープシーケンスとの比較がなされなければならない。こ
の場合一致するのは、変換テーブル9−2のアドレス位
置CNVP+10xESから格納されている一番最後の
エスケープシーケンスであり、これを検索するまで以上
のような繰り返し処理がなされる。
Since the count value N of the table counter 11 is now 929 in Sr1, the contents of the address position 1sTRP+2 of the string buffer 7 are compared with the contents of the address position CNVP+2 of the conversion table 9-2 in Sr1. This time, the contents of 5TRP+2 and CNVP+
Since the contents of 2 match v and Ow, proceed to Sr1. In addition, programmable function key PFI
If O is pressed, the content of 5TRP+2 is 71
9, so a comparison must be made with the next escape sequence in conversion table 9-2. In this case, the match is the last escape sequence stored from address position CNVP+10xES in conversion table 9-2, and the above-described process is repeated until this is retrieved.

さて、説明を再びプログラマブルファンクションキーP
FIの場合に戻すと、Sr1では、カウント値Nが歩進
され939になり、Sr1では、変換テーブル9−2の
アドレス値CNVP+3の内容が909か否かを調べる
。いまの場合CNVP+3の内容はwlvであるので、
5T13に進む。5T13では、ストリングバッファ7
のアドレス値5TRP+3の内容が9−19であるか否
かを調べる。いまの場合、5TRP+3の内容は9−1
9であるので、再びSTIに戻り、キーバッファ5に格
納されたエスケープシーケンス”IB〔01/〜〕 9
の919を読み出す処理を再開し、以後、エスケープキ
ーESCのエスケープシーケンス91B (36/〜〕
 7と全く同様の手順を繰り返す。文字g〜9が処理さ
れると、Sr1において、テーブルカウンタ11のカウ
ント値Nはv6vとなり、Sr1において変換テーブル
9−2のアドレス位置CNVP+6の内容はVOWであ
るので、5TIOに進み、5T10でプロセッサ14ヘ
エスケープシーケンス” IB (01/〜〕 9に対
応するコード’101’を出力する。
Now, let me explain again the programmable function key P.
Returning to the case of FI, in Sr1, the count value N is incremented to 939, and in Sr1, it is checked whether the content of the address value CNVP+3 of the conversion table 9-2 is 909 or not. In this case, the contents of CNVP+3 are wlv, so
Proceed to 5T13. In 5T13, string buffer 7
It is checked whether the content of the address value 5TRP+3 is 9-19. In this case, the content of 5TRP+3 is 9-1
9, return to STI again and write the escape sequence "IB[01/~] 9 stored in key buffer 5.
The process of reading 919 of 919 is restarted, and thereafter the escape sequence 91B of the escape key ESC (36/~)
Repeat the same procedure as step 7. When characters g to 9 are processed, the count value N of the table counter 11 becomes v6v in Sr1, and the content of the address position CNVP+6 of the conversion table 9-2 in Sr1 is VOW, so the process advances to 5TIO and the processor 14 escape sequence" IB (01/~) Outputs the code '101' corresponding to 9.

〔発明の効果〕〔Effect of the invention〕

以上の説明で明らかなように、この発明によると、エス
ケープキーとプログラマブルファンクションキーとを同
時に使用しても操作上何らの支障もなく、またエスケー
プキーESCの処理を、次に押下されるキーによって処
理せずとも、エスケープキーESCだけ押下しても、プ
ログラマブルファンクションキーの押下の場合と区別す
ることができて、オペレータにとってエスケープキーと
プログラマブルファンクションキーの操作上の制限およ
び注意が不要となり、オペレータの負担を著しく軽減し
、操作性の向上を図ることができる。
As is clear from the above description, according to the present invention, there is no problem in operation even when the escape key and the programmable function key are used at the same time, and the processing of the escape key ESC can be performed depending on the next key pressed. Even if only the escape key ESC is pressed without processing, it can be distinguished from the case of pressing a programmable function key, and the operator does not need to be aware of any restrictions or cautions regarding the operation of the escape key and programmable function key. It is possible to significantly reduce the burden and improve operability.

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

第1図は、本発明のキー入力制御装置のブロック図、 第2図は、本発明のキー入力制御装置のシステム構成図
、 第3図はキーボードのエスケープキーESCを押下した
ときの動作概要図、 第4図は、本発明の入力制御回路の変換処理を示すフロ
ーチャート 第5図は、従来のキー入力制御装置のシステム構成図、 第6図(a)、 (b)、 (C1は、従来のキー入力
制御装置のファンクションキーテーブル、キーコードテ
ーブル、エスケープシーケンス変換テーブルの構成図で
ある。 20・・・コード出力手段、 21・・・コード変換手段、 特許出願人   カシオ計算機株式会社1キーボード □ 第3 「 ・リンゲバッファ 第6 (C) 口
Fig. 1 is a block diagram of the key input control device of the present invention, Fig. 2 is a system configuration diagram of the key input control device of the present invention, and Fig. 3 is a schematic diagram of the operation when the escape key ESC of the keyboard is pressed. , FIG. 4 is a flow chart showing the conversion process of the input control circuit of the present invention. FIG. 5 is a system configuration diagram of a conventional key input control device. It is a configuration diagram of a function key table, a key code table, and an escape sequence conversion table of the key input control device. 20... Code output means, 21... Code conversion means, Patent applicant Casio Computer Co., Ltd. 1 Keyboard □ 3rd ``・Lingebuffer 6th (C) Mouth

Claims (1)

【特許請求の範囲】 1)エスケープキーの押下により該エスケープキーに対
応するエスケープシーケンスを出力するコード出力手段
と、該コード出力手段から出力されるエスケープキーの
エスケープシーケンスをエスケープコードに変換するコ
ード変換手段とを具備することを特徴とするキー入力制
御装置。 2)前記コード出力手段は、エスケープキー或いはプロ
グラマブルファンクションキーにそれぞれのエスケープ
シーケンスを対応させたファンクションキーテーブルと
、エスケープキー以外のコード出力キーにそれぞれのキ
ーコードを対応させたキーコードテーブルとを備えてい
ることを特徴とする特許請求の範囲第1項に記載のキー
入力制御装置。 3)前記コード出力手段は、コード出力回路とキーバッ
ファとを備え、前記コード出力回路は、押下されたキー
に対応するエスケープシーケンス或いはキーコードをフ
ァンクションキーテーブル或いは前記キーコードテーブ
ルで検索し、エスケープシーケンス或いはキーコードを
前記キーバッファに格納することを特徴とする特許請求
の範囲第2項に記載のキー入力制御装置。 4)前記コード変換手段は、エスケープキーのエスケー
プシーケンスにエスケープコードを対応させかつプログ
ラマブルファンクションキーのキーコードに所定のコー
ドを対応させたエスケープシーケンス変換テーブルを備
えていることを特徴とする特許請求の範囲第2項または
第3項に記載のキー入力制御装置。 5)前記コード変換手段は、入力制御回路とコードバッ
ファとストリングバッファとを備え、前記入力制御回路
は、前記コード出力手段のキーバッファに格納されたエ
スケープシーケンス或いはキーコードを一文字づつ読取
りこれをコードバッファに格納し、該コードバッファに
格納されたエスケープシーケンスを一文字ごとに前記ス
トリングバッファに転送し前記エスケープシーケンス変
換テーブルを用いて検索処理を行い所定の変換コードを
出力することを特徴とする特許請求の範囲第4項に記載
のキー入力制御装置。
[Claims] 1) Code output means that outputs an escape sequence corresponding to the escape key when the escape key is pressed, and code conversion that converts the escape sequence of the escape key output from the code output means into an escape code. A key input control device comprising: means. 2) The code output means includes a function key table in which escape keys or programmable function keys are associated with respective escape sequences, and a key code table in which code output keys other than the escape key are associated with respective key codes. A key input control device according to claim 1, characterized in that: 3) The code output means includes a code output circuit and a key buffer, and the code output circuit searches the function key table or the key code table for an escape sequence or key code corresponding to the pressed key, and outputs the escape sequence or key code corresponding to the pressed key. 3. The key input control device according to claim 2, wherein a sequence or a key code is stored in the key buffer. 4) The code converting means includes an escape sequence conversion table in which escape sequences of escape keys are made to correspond to escape codes, and key codes of programmable function keys are made to correspond to predetermined codes. The key input control device according to item 2 or 3 of the range. 5) The code conversion means includes an input control circuit, a code buffer, and a string buffer, and the input control circuit reads the escape sequence or key code stored in the key buffer of the code output means one character at a time and converts it into a code. A patent claim characterized in that the escape sequence stored in the code buffer is transferred character by character to the string buffer, a search process is performed using the escape sequence conversion table, and a predetermined conversion code is output. The key input control device according to item 4.
JP61099723A 1986-04-30 1986-04-30 Key input control device Expired - Lifetime JP2661013B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61099723A JP2661013B2 (en) 1986-04-30 1986-04-30 Key input control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61099723A JP2661013B2 (en) 1986-04-30 1986-04-30 Key input control device

Publications (2)

Publication Number Publication Date
JPS62256120A true JPS62256120A (en) 1987-11-07
JP2661013B2 JP2661013B2 (en) 1997-10-08

Family

ID=14254992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61099723A Expired - Lifetime JP2661013B2 (en) 1986-04-30 1986-04-30 Key input control device

Country Status (1)

Country Link
JP (1) JP2661013B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014174622A (en) * 2013-03-06 2014-09-22 Toshiba Corp Image forming apparatus and image forming system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014174622A (en) * 2013-03-06 2014-09-22 Toshiba Corp Image forming apparatus and image forming system

Also Published As

Publication number Publication date
JP2661013B2 (en) 1997-10-08

Similar Documents

Publication Publication Date Title
CN106777170A (en) Strengthen the medical information document handling system and method for server access speed
JPS62256120A (en) Key-in controller
JP3271120B2 (en) Device for fast multiplication of binary numbers
JPH0580972A (en) Data compression device
US5010483A (en) Vector processor capable of indirect addressing
JPS61262913A (en) Keyboard simultaneous push shift processing system
JPS62256119A (en) Key-in controller
JP3120443B2 (en) Command processing unit
JP3596696B2 (en) Information retrieval device
JP2742142B2 (en) Dictionary registration method of Kana-Kanji conversion device
JP3007356B2 (en) Compiling device
JPH0646376B2 (en) Input control method
KR0124600B1 (en) Variable length code decoder in hdtv
JPH04367946A (en) Debug information output system
JPH0462630A (en) Character code converting device
JP3182250B2 (en) Automatic repetition detection input device
JP2543678B2 (en) Data generation method
JP3223559B2 (en) Setting method of digital protection relay
JPS58103027A (en) Shift controller for key input prefetch
JPH04326120A (en) Information processor
JPH0736594A (en) Signal input device and signal input method
JPH0667963A (en) File comparison system
Schonfelder Varying length strings in Fortran
JPH1040145A (en) Method for comparing record
JPS5935227A (en) Japanese syllabary-chinese character conversion system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term