JPH0552526B2 - - Google Patents
Info
- Publication number
- JPH0552526B2 JPH0552526B2 JP61115308A JP11530886A JPH0552526B2 JP H0552526 B2 JPH0552526 B2 JP H0552526B2 JP 61115308 A JP61115308 A JP 61115308A JP 11530886 A JP11530886 A JP 11530886A JP H0552526 B2 JPH0552526 B2 JP H0552526B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- address
- input
- processing unit
- processing
- 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 - Fee Related
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】
〔概要〕
キー入力を当該キーに対応する処理部のアドレ
スに変換するテーブルを、書替え可能なメモリで
構成し、同じキーでも第何回目の入力かで異なる
処理部を指すキーについては、今回実行の処理部
によつて該テーブルのアドレスを次の処理部のア
ドレスに書替えておく。これにより、次のキー入
力に対する処理部アドレスの発生を高速化する。[Detailed Description of the Invention] [Summary] A table that converts a key input into the address of a processing unit corresponding to the key is configured in a rewritable memory, and even if the same key is input, different processing units are Regarding the key pointed to, the address of the table is rewritten by the currently executed processing section to the address of the next processing section. This speeds up generation of the processing unit address for the next key input.
本発明は、同じキーでも第何回目の入力かによ
り異なる処理部を起動するキー処理方式に関し、
キー処理部アドレステーブルを各処理毎に書替え
てアドレシングの高速化を図ろうとするものであ
る。
The present invention relates to a key processing method that activates different processing units depending on how many times the same key is input.
This attempts to speed up addressing by rewriting the key processing unit address table for each process.
ワードプロセツサでは、第5図aに示すように
「あいう」と表示された文字列を別の場所に移動
する場合、カーソル11をの位置に移して「セ
ツト」キー12を押し、移動する文字列の先頭を
指示し、次にカーソル11をの位置に移して再
度「セツト」キー12を押し、移動する文字列の
尾端を示す。その後カーソル11をの移動先位
置に移し、「移動」キー13を押す。これにより
移動先位置に図示のように文字列の「あいう」
が移動する。
In a word processor, if you want to move the character string displayed as ``Aiu'' to another location as shown in Figure 5a, move the cursor 11 to the position and press the ``Set'' key 12, then move the character string to a different location. Indicate the beginning of the string, then move the cursor 11 to the position and press the "Set" key 12 again to indicate the tail end of the character string to be moved. Thereafter, move the cursor 11 to the destination position and press the "move" key 13. As a result, the character string "Aiu" appears at the destination position as shown in the figure.
moves.
この場合、セツトキーは1回目の操作では「移
動範囲の開始位置」を指示し、2回目の操作では
「その移動範囲の終了位置」を指示する。これは
開始位置指定用のセツトキー及び終了位置指定用
のセツトキーを用いるのに比べて同じキーを使用
できるので簡単であり、操作性に富むが、しか
し、キーとしてはどちらも同じキーであるので、
何回目のキー入力かを判別しなければ正しいキー
入力処理ができない。 In this case, the first operation of the set key instructs the "start position of the movement range", and the second operation instructs the "end position of the movement range". This is easier than using the set key for specifying the start position and the set key for specifying the end position because the same key can be used, and it is more convenient to operate. However, since they are both the same key,
Correct key input processing cannot be performed unless it is determined how many times the key has been input.
一般にキー入力をその処理部(プログラム)の
メモリ上アドレスに変換するのにテーブルを使用
するが、1つのキーに対してテーブル上のアドレ
スは1つしか与えられないため、同じキーでも入
力毎に違う意味を持つ場合従来は第5図cに示す
ように、各キー処理部内でその入力が1回目か2
回目かを判断し、その判断結果に従う処理を行つ
ている。
Generally, a table is used to convert a key input into an address in the memory of its processing unit (program), but since only one address on the table can be given to one key, even if the same key is input, Conventionally, when the meaning is different, as shown in Figure 5c, the input is the first or second time in each key processing section.
It determines whether it is the third time and performs processing according to the determination result.
ところが、この様にプログラムでキー入力の回
数をチエツクし、その回数に応じた処理を選択す
ると、キー処理部内部の処理が煩雑化し、処理効
率が低下する欠点がある。 However, if the program checks the number of key inputs and selects a process according to the number of key inputs, the process inside the key processing section becomes complicated and the processing efficiency decreases.
本発明はキー処理部アドレステーブルを書替え
ることにより、上述したキー入力回数の判断を不
要とするものである。 The present invention eliminates the need for determining the number of key inputs described above by rewriting the key processing unit address table.
第1図は本発明の基本構成図で、1,2は同じ
キーの入力の1回目、2回目で起動される処理
部、3はキー入力(キーNo.)を処理部アドレスに
変換するテーブルである。本発明ではこのテーブ
ルを書替え可能なメモリ(RAM)で構成し、そ
の内容をキー処理部によつて各処理の終了時に書
替える。
Figure 1 is a basic configuration diagram of the present invention, where 1 and 2 are processing units that are activated when the same key is input for the first and second time, and 3 is a table that converts key input (key No.) into a processing unit address. It is. In the present invention, this table is constructed from a rewritable memory (RAM), and its contents are rewritten by the key processing section at the end of each process.
例えば、キーNo.aがテーブル3の処理部アドレ
スAの格納された領域(デーブルアドレス)を指
すものとして、アドレスAがA1またはA2となる
ように変更すると、A=A1のときは処理部アド
レスがA1の処理部1が起動され、A=A2のとき
は同じキー入力でも処理部アドレスがA2の処理
部2が起動される。このテーブル内アドレスA
を、処理部1によつてA1からA2に、また処理部
2によつてA2からA1に(同じキー押下は2回ま
でとして)、という様に次に予定される処理部の
アドレスに書替えておけば、キー入力時に何回目
の操作かを判断する必要はなくなる。
For example, assuming that key No. a points to the area (table address) in which processing unit address A of table 3 is stored, if address A is changed to A 1 or A 2 , then when A = A 1 , The processing section 1 whose processing section address is A1 is activated, and when A= A2 , the processing section 2 whose processing section address is A2 is activated even if the same key input is performed. Address A in this table
is changed from A 1 to A 2 by processing unit 1, and from A 2 to A 1 by processing unit 2 (the same key can be pressed up to twice), and so on for the next scheduled processing unit. By rewriting it to an address, there is no need to judge the number of times the key is pressed.
第2図は本発明の一実施例を示すフローチヤー
トで、aは全体の流れを示すゼネラルフロー、b
は1回目の処理部の内容を示すフロー、cは2回
目の処理部の内容を示すフローである。第1図の
アドレスを用いれば、bの1回目処理を終了した
時点でテーブル3のアドレスAをA1からA2に書
替え、cの2回目処理を終了した時点でそれを
A2からA1に書替え、最初に戻る、ということに
なる。
FIG. 2 is a flowchart showing one embodiment of the present invention, in which a shows the general flow and b shows the overall flow.
c is a flow showing the contents of the first processing section, and c is a flow showing the contents of the second processing section. Using the addresses in Figure 1, address A in table 3 is rewritten from A 1 to A 2 when the first processing of b is completed, and it is rewritten when the second processing of c is completed.
This means rewriting A 2 to A 1 and returning to the beginning.
このようにしておくと、aのフローには何回目
かの判断が不要になり、テーブルを検索して処理
部アドレスを求めたら、直ちにそのキー処理(こ
こではbまたはcの処理)に移ることができる。
詳しくはその処理をしてよいか否か、つまりキー
入力の有効性をチエツクしてから当該処理に移る
必要があるが、この点については後述する。 By doing this, you will not need to make several judgments in the flow of a, and after searching the table and finding the processing unit address, you can immediately move on to the key process (in this case, the process of b or c). I can do it.
In detail, it is necessary to check whether the process is allowed or not, that is, check the validity of the key input before proceeding to the process, but this point will be described later.
尚、1回目のキー操作をしたが2回目のキー操
作は行なわず操作を中止した場合等は、第1図の
例であれば処理部アドレスAがA2になつている
ことがある。この状態で該当するキーを押すと処
理は2回目操作から行なわれ、エラーとなる。、
従つて入力中断でも最初に復帰する必要がある。
この復帰処理は、電源投入時のIPL処理または中
断に際して押下する取消キーの処理の一部として
行なわせることができる。 Incidentally, in the case where the first key operation is performed but the second key operation is not performed and the operation is aborted, the processing unit address A may become A2 in the example of FIG. If the corresponding key is pressed in this state, the process will be performed from the second operation and an error will occur. ,
Therefore, even if input is interrupted, it is necessary to return to the beginning.
This return process can be performed as part of the IPL process when the power is turned on or as part of the cancel key process that is pressed at the time of interruption.
ところで、第5図bの例でセツトキー12を押
し、、次に再びセツトキー12を押すべきとこ
ろを移動キー13を押したら、操作ミスである。
この場合、ではセツトキー12以外は受け付け
ない、或いは少なくとも移動キー13は受け付け
ないとする何らかの機構が必要である。従来はこ
れを管理プログラムで行つているが、テーブル3
に有効フラグを設定することで、この管理プログ
ラムも簡素化できる。 By the way, in the example shown in FIG. 5B, if you press the set key 12 and then press the move key 13 when you should have pressed the set key 12 again, it is an operational error.
In this case, some kind of mechanism is required that does not accept keys other than the set key 12, or at least does not accept the movement key 13. Conventionally, this is done using a management program, but Table 3
This management program can also be simplified by setting a valid flag to .
第3図は上述した有効フラグFを用いた例を示
す。この有効フラグFは処理部アドレスBに付随
し、例えば8ビツト構成である。4はこのフラグ
Fと同じビツト構成のレジスタで、各ビツトが装
置の各状態を示す。例えば、第4図aに示すよう
に状態1のビツトはセツトキー12が1回目に操
作されるとき1(有効)であり、また状態2のビ
ツトはセツトキー12が2回目に操作されるとき
1である。このような有効フラグを設けておく
と、キー入力の有効/無効を簡単に判別できる。
即ち、1回目のセツトキー入力ではテーブル3の
当該処理部ナドレスに付属する有効フラグは状態
1の所が1になつており、また装置のソフトウエ
アがレジスタ4に同じ有効フラグ(00100000)を
書込んでおくので、テーブル3の読出し出力のフ
ラグ部をレジスタ4の内容と比較する(各ビツト
対応でアンドをとる)すると状態1の所で1が得
られ、これにより当該キー入力は有効と判断でき
る。2回目のセツトキー入力のときも同様で、こ
のときは状態2の位置でアンド結果1が得られ
る。 FIG. 3 shows an example using the validity flag F described above. This valid flag F is attached to the processing unit address B and has, for example, an 8-bit configuration. 4 is a register having the same bit configuration as this flag F, and each bit indicates each state of the device. For example, as shown in Figure 4a, the bit in state 1 is 1 (valid) when the set key 12 is operated for the first time, and the bit in state 2 is 1 when the set key 12 is operated for the second time. be. By providing such a validity flag, it is possible to easily determine whether a key input is valid or invalid.
That is, when the set key is input for the first time, the valid flag attached to the corresponding processing unit address in table 3 is set to 1 in state 1, and the software of the device writes the same valid flag (00100000) to register 4. Therefore, when we compare the flag part of the readout output of table 3 with the contents of register 4 (taking an AND for each bit), we get 1 in state 1, and from this we can judge that the key input is valid. . The same goes for the second set key input, and in this case, the AND result 1 is obtained at the position of state 2.
ところでアドレスBを移動キー13の処理部の
アドレスとすると、この有効フラグFは状態1,
2の位置に立てた2つの1とすることが考えられ
る(移動は2回セツトされたとき有効であるか
ら)が、このようにすると状態1,2のANDを
個々にとり、更に総合的にANDをとる必要があ
るため、煩雑である。なお、第3図ではアンドを
ハードウエア(AND回路5)でとるように示し
ているが、実際はソフトウエアで処理するので、
上記方法では処理に時間がかゝる。そこで本例で
はそれを状態3に総合してAND処理を簡略化す
る。 By the way, if address B is the address of the processing section of movement key 13, this valid flag F is in state 1,
It is conceivable to make two 1's placed in the position of 2 (because movement is valid when set twice), but if you do this, you can AND each state 1 and 2 individually, and then AND them collectively. It is complicated because it is necessary to take Although Figure 3 shows that the AND is performed by hardware (AND circuit 5), it is actually processed by software, so
The above method takes time to process. Therefore, in this example, these are combined into state 3 to simplify the AND processing.
つまり、状態1のビツトが1であり、且つ状態
2のビツトも1になつたら、これらを共に0に戻
すと共に、第4図bに示すように状態3のビツト
を1にする。これは装置付属のソフトウエアで行
なう。即ち第1図のキー処理部1はその処理の最
後でテーブル3の当該アドレスの内容(処理部ア
ドレスと有効フラグ)書換えを行なうが、このと
き装置付属のソフトウエアはレジスタ4の内容を
状態1と2で1にする。2回目のキー入力で当該
キーに対する処理部アドレスと有効フラグ(状態
2が1)が読出され、該フラグとレジスタ4の内
容(状態1と2が1)が比較される。状態2で一
致がとれるのでこのキー入力は有効であり、その
処理が行なわれるがこのとき装置付属のソフトウ
エアはレジスタ4を状態3で1にする(状態1と
2が1であるので)。 That is, if the bit in state 1 is 1 and the bit in state 2 is also 1, both of them are returned to 0, and the bit in state 3 is set to 1 as shown in FIG. 4b. This is done using software included with the device. That is, the key processing unit 1 in FIG. 1 rewrites the contents of the address in table 3 (processing unit address and valid flag) at the end of its processing, but at this time, the software attached to the device changes the contents of register 4 to state 1. and 2 make it 1. With the second key input, the processing unit address and valid flag (state 2 is 1) for the key are read out, and the flag is compared with the contents of the register 4 (states 1 and 2 are 1). Since a match is found in state 2, this key input is valid and the process is carried out, but at this time, the software attached to the device sets register 4 to 1 in state 3 (since states 1 and 2 are 1).
移動キーが押されるとテーブル3の処理部アド
レスBとその有効フラグ(これも上記に合わせて
状態3で1にしておく)が読出され、レジスタ4
の内容と比較される。このようにすると、レジス
タ4も有効フラグFも状態3のみ、つまり8ビツ
ト中に1ビツトのみ1であるから簡単にアンドを
とることができ、その結果が1であればキー入力
有効、0であれば無効と簡単に判断できる。尚、
状態3の位置は適当でよく、或いは状態3を設け
ずに、状態1,2が1であれば状態1のみ1にし
て状態2は0にする(勿論テーブル3の処理部ア
ドレスBの有効フラグもそのようにしておく)よ
うにしてもよい。 When the movement key is pressed, the processing unit address B of table 3 and its valid flag (which is also set to 1 in state 3 according to the above) are read out, and register 4 is read out.
is compared with the contents of In this way, register 4 and valid flag F are only in state 3, that is, only 1 bit out of 8 bits is 1, so it is easy to AND, and if the result is 1, the key input is valid, and if it is 0, it is 1. If so, you can easily determine that it is invalid. still,
The position of state 3 may be arbitrary, or if state 3 is not provided and states 1 and 2 are 1, only state 1 is set to 1 and state 2 is set to 0 (of course, the valid flag of processing unit address B in table 3 You can also leave it like that).
あるキーの入力が、該キーの入力条件を満足し
ているか否かの判定の他の例としては4桁の文字
コード入力を挙げることができる。即ちキーボー
ドにはない文字を表示するときは当該文字のアス
キーコードをテンキー操作で入力する等の方法を
とるが、この場合文字コードは4桁であるので数
字入力が4回あつて始めて文字コード入力完了に
なる。この入力回数チエツクも、各数字入力の度
にカウンタをインクリメントし、4回になつたら
表示キーに対応する処理部アドレスの有効フラグ
位置を1にしたフラグをレジスタ4にセツトする
ことで簡単に行なうことができる。 Another example of determining whether the input of a certain key satisfies the input conditions for that key is the input of a four-digit character code. In other words, when displaying a character that is not on the keyboard, a method such as inputting the ASCII code of the character using the numeric keypad is used, but in this case, the character code is 4 digits, so the character code cannot be entered until the number has been entered 4 times. It becomes complete. You can easily check the number of inputs by incrementing the counter each time you input a number, and when it reaches 4 times, setting a flag in register 4 with the valid flag position of the processing unit address corresponding to the display key set to 1. be able to.
以上述べたように本発明によれば、各キーに対
する処理部アドレスのテーブルを書替え可能なメ
モリで構成し、今回処理中の処理部が該テーブル
の該当する領域を次に予定される処理部のアドレ
スに書替えておく処理をすることで、次のキー入
力時のアドレシングが高速化される利点がある。
As described above, according to the present invention, a table of processing unit addresses for each key is configured in a rewritable memory, and the processing unit currently processing transfers the corresponding area of the table to the next scheduled processing unit. The process of rewriting the address has the advantage of speeding up addressing when the next key is input.
第1図は本発明の基本構成図、第2図は本発明
の一実施例を示すフローチヤート、第3図は本発
明の他の実施例を示す構成図、第4図はその動作
説明図、第5図は従来のキー処理方式の説明図で
ある。
図中、1,2はキー処理部、3はキー処理部ア
ドレステーブル、12,13はキーである。
Fig. 1 is a basic configuration diagram of the present invention, Fig. 2 is a flowchart showing one embodiment of the invention, Fig. 3 is a block diagram showing another embodiment of the invention, and Fig. 4 is an explanatory diagram of its operation. , FIG. 5 is an explanatory diagram of a conventional key processing method. In the figure, 1 and 2 are key processing units, 3 is a key processing unit address table, and 12 and 13 are keys.
Claims (1)
レスに変換するテーブル3を備えたキー処理方式
において、該テーブルを書替え可能なメモリで構
成すると共に、同じキーでも第何回目の入力であ
るかにより異なる処理部1,2を指示するキーに
ついては、先行する処理部によつて該テーブル内
のアドレスを次の処理部のアドレスに書替えるこ
とを特徴とするキー処理方式。 2 前記テーブル3は、処理部のアドレスと共
に、フラグF部を有して該フラグ部の所定のフラ
グを立てることで当該キーの種類を示し、複数回
の繰返しキー入力で有効となる処理についてはそ
の複数回のキー入力があつたのを条件に所定の1
つのフラグを立てるようにしてなることを特徴と
する特許請求の範囲第1項記載のキー処理方式。[Claims] 1. In a key processing method including a table 3 for converting a key input into an address of a processing unit corresponding to the key, the table is composed of a rewritable memory, and the same key This key processing method is characterized in that for keys that instruct different processing units 1 and 2 depending on whether the input is an input, the address in the table is rewritten by the preceding processing unit to the address of the next processing unit. 2. The table 3 has a flag F section along with the address of the processing section, and indicates the type of the key by setting a predetermined flag in the flag section. The predetermined 1 is set on condition that the key is input multiple times.
2. The key processing method according to claim 1, wherein two flags are set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61115308A JPS62271121A (en) | 1986-05-20 | 1986-05-20 | Key processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61115308A JPS62271121A (en) | 1986-05-20 | 1986-05-20 | Key processing system |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62271121A JPS62271121A (en) | 1987-11-25 |
JPH0552526B2 true JPH0552526B2 (en) | 1993-08-05 |
Family
ID=14659410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61115308A Granted JPS62271121A (en) | 1986-05-20 | 1986-05-20 | Key processing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62271121A (en) |
-
1986
- 1986-05-20 JP JP61115308A patent/JPS62271121A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS62271121A (en) | 1987-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4302816A (en) | Key input control apparatus | |
JP2653346B2 (en) | Programmable controller | |
JP3529948B2 (en) | Display method of mathematical formulas including electronic devices and variables | |
JPH0552526B2 (en) | ||
JPS6359188B2 (en) | ||
JPH044282Y2 (en) | ||
JPS5814688B2 (en) | Kanji-mixed sentence input device that sequentially displays homophones | |
JP3817937B2 (en) | Computing device and storage medium | |
JPH0421151Y2 (en) | ||
JP2802325B2 (en) | Character processor | |
JPS5836371B2 (en) | Display method of calculators, etc. | |
JPS6245224Y2 (en) | ||
JPS6366594A (en) | Display information input unit | |
JPS6348593A (en) | Character processor | |
JPS6227930Y2 (en) | ||
JPS6349770Y2 (en) | ||
JPH0532781B2 (en) | ||
JPH0661054B2 (en) | input method | |
JPS5838810B2 (en) | Kanji-mixed sentence input device | |
JPS6336365A (en) | Japanese language processor | |
JPH0213340B2 (en) | ||
JPS58193576A (en) | Graphic japanese character learning machine | |
JPH0525324B2 (en) | ||
JPH0152772B2 (en) | ||
JPH05242072A (en) | Programming system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |