JPH0619778B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH0619778B2
JPH0619778B2 JP57234429A JP23442982A JPH0619778B2 JP H0619778 B2 JPH0619778 B2 JP H0619778B2 JP 57234429 A JP57234429 A JP 57234429A JP 23442982 A JP23442982 A JP 23442982A JP H0619778 B2 JPH0619778 B2 JP H0619778B2
Authority
JP
Japan
Prior art keywords
data
stored
area
registration
memory
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 - Lifetime
Application number
JP57234429A
Other languages
Japanese (ja)
Other versions
JPS59123036A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP57234429A priority Critical patent/JPH0619778B2/en
Publication of JPS59123036A publication Critical patent/JPS59123036A/en
Publication of JPH0619778B2 publication Critical patent/JPH0619778B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof

Description

【発明の詳細な説明】 技術分野 本発明は、データ処理装置に関し、たとえば文書処理装
置においてキーボードなどの入力部から入力された文章
をキーワードに対応させてメモリに記憶して保存登録
し、その登録内容を前記入力部から入力されるキーワー
ドによって読出すことができるようにした文書処理装置
などのようなデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device, and, for example, a sentence input from an input unit such as a keyboard in a document processing device is stored in a memory in association with a keyword, saved and registered, and then registered. The present invention relates to a data processing device such as a document processing device, the contents of which can be read by a keyword input from the input unit.

従来技術 従来からの文書処理装置では、作成した文章を半永久的
に保存するために、フロツピーデイスクや、電池などで
バツクアツプされたメモリが内蔵されたカセツトなどの
外部記憶手段を設け、これによつて文章データを記憶し
て保存登録し、適時読出しを行なつている。この保存登
録時には、文章ごとにキーワード名を対応させ、このキ
ーワードをキーボード装置から入力することによつて対
応する文章データを外部記憶手段から読出して再編集を
行なつている。
2. Description of the Related Art A conventional document processing apparatus is provided with an external storage means such as a floppy disk or a cassette with a built-in memory backed up by a battery in order to semi-permanently store a created text. Then, the text data is stored, saved and registered, and read out at appropriate times. At the time of this storage registration, a keyword name is made to correspond to each sentence, and by inputting this keyword from the keyboard device, the corresponding sentence data is read from the external storage means and re-edited.

しかして、文章を入力している途中で中断して一時的に
このような外部記憶手段に登録しておきたいことが望ま
れる。従来ではこのような場合でも外部記憶手段にスト
アするにはキーワードに対応してストアする必要があ
り、したがつて各種の文章を多く入力するとキーワード
の数が増加し、読出しのための操作がいたずらに煩雑に
なつてしまう。
Therefore, it is desired to interrupt the process of inputting a sentence and temporarily register it in such an external storage means. Conventionally, even in such a case, it is necessary to store corresponding to a keyword in order to store it in the external storage means. Therefore, when many kinds of sentences are input, the number of keywords increases, and the operation for reading is a prank. It becomes complicated.

このような問題を解決するためには単純には外部記憶手
段の予め定めたストア領域を準備しておき、この領域に
キーワードなしの文章を記憶して一時登録することが考
えられるけれども、このようにすればキーワードに対応
して外部記憶手段にストアしておくことができるストア
領域が減少することになり好ましくない。
In order to solve such a problem, it is conceivable that a predetermined store area of the external storage means is simply prepared, and sentences without keywords are stored and temporarily registered in this area. If so, the storage area that can be stored in the external storage means corresponding to the keyword decreases, which is not preferable.

目 的 本発明の目的は、文章等のデータの一時登録制御に関し
て、一時登録用の固定領域を設けないで一時登録制御を
行うことが出来るデータ処理装置を提供するものであ
る。
It is an object of the present invention to provide a data processing device capable of performing temporary registration control without providing a fixed area for temporary registration with respect to temporary registration control of data such as sentences.

発明の構成 本発明は、文書等のデータを入力する入力部と、 前記入力部から入力されたデータを記憶する第1メモリ
と、 前記第1メモリに記憶されたデータを複数保存登録する
第2メモリとを有するデータ処理装置であって、 前記第2メモリに、複数のデータを記憶する第1ストア
領域と、該第1ストア領域に記憶されたデータのアドレ
ス値と該データのキーワードと対応づけて複数記憶する
第2ストア領域と、該第1ストア領域に記憶されたデー
タのアドレス値を唯一記憶する第3ストア領域とを設
け、 前記第1メモリに記憶されたデータの前記第2メモリへ
の保存登録指示がキーワード登録の場合には前記第1ス
トア領域の空きアドレス位置にデータを記憶すると共に
前記第2ストア領域にキーワードとアドレス値を追加記
憶し、 一時登録の場合には前記第1ストア領域の空きアドレス
位置あるいは既に一時登録データが記憶されている場合
その一時登録データのアドレス位置にデータを記憶する
と共に前記第3ストア領域のアドレス値を書換記憶する
登録制御手段を備えたことを特徴とするデータ処理装置
である。
According to the present invention, an input unit for inputting data such as a document, a first memory for storing data input from the input unit, and a second storage for registering a plurality of data stored in the first memory A data processing device having a memory, wherein the second memory associates a first store area for storing a plurality of data, an address value of the data stored in the first store area, and a keyword of the data. A plurality of second store areas for storing the data stored in the first memory, and a third store area for storing only the address value of the data stored in the first store area, and storing the data stored in the first memory in the second memory. When the storage registration instruction is a keyword registration, data is stored in an empty address position of the first store area, and a keyword and an address value are additionally stored in the second store area. In the case of registration, data is stored in an empty address position of the first store area or in the address position of the temporary registration data when the temporary registration data is already stored, and the address value of the third store area is rewritten and stored. A data processing device comprising registration control means.

実施例 第1図は、本発明の一実施例のブロツク図である。キー
ボード装置1は、文章を入力するための文字入力キー1
1と、この文字入力キー11によつて入力されて編集さ
れた文章データを記憶する後述の文章バツフア41の任
意の文章を半永久的に不揮発性メモリ7に記憶して保存
登録するための指示を行なう登録キー12と、このメモ
リ7に既に登録してある文章を文章バツフア41に呼出
す制御を指示する呼出キー13と、先に操作指示した制
御指示の実行を行なうために操作される実行キー14と
を備えている。メモリ7はフロツピーデイスクであつて
もよく、または電池などでバツクアツプされたメモリを
備えたカセツトであつてもよい。これらのキー11〜1
4を操作すると、対応する文字コードまたは関連するコ
ードおよび制御のためのコードがキーボード装置1から
発生され処理回路3に与えられる。処理回路2はリード
オンリメモリ3にストアされている後述の制御プログラ
ムに従つて処理動作を行なう。ランダムアクセスメモリ
4は、(a)上述の文章データを記憶する文章バツフア4
1と、(b)この文章バツフア41のデータを登録する際
に文字入力キー11によつてキーワードが入力され、こ
のキーワードのデータを一時的に記憶するキーワードバ
ツフア42と、(c)メモリ7の内容を処理している途中
において、そのアドレスデータを一時的に記憶するバツ
フア43,44と、(d)メモリ7に登録されている文章
のバイト数を一時的に記憶するバツフア45,46と、
(e)文章データのバイト数をカウントするカウンタ47
と、(f)アドレスデータを一時的に記憶するアドレスポ
インタ48,49と、(g)その他種々のフラグバツフア
などのストア領域50とを含む。プリンタコントローラ
5は、ドツトプリンタ6を制御する。陰極線管表示装置
などの表示装置9は、表示制御回路8によつて制御され
る。プリンタ6は文章バツフア41のデータが記録さ
れ、また表示装置9では文章バツフア41の内容が表示
される。
Embodiment FIG. 1 is a block diagram of an embodiment of the present invention. The keyboard device 1 is a character input key 1 for inputting a sentence.
1 and an instruction for semi-permanently storing in the non-volatile memory 7 and storing and storing an arbitrary sentence in the sentence buffer 41, which will be described later and stores the sentence data input and edited by the character input key 11. A registration key 12 to be executed, a call key 13 for instructing control to call a sentence already registered in the memory 7 to the sentence buffer 41, and an execution key 14 operated to execute the control instruction previously instructed. It has and. The memory 7 may be a floppy disk or a cassette equipped with a memory backed up by a battery or the like. These keys 11-1
When the user operates 4, the corresponding character code or the related code and the control code are generated from the keyboard device 1 and given to the processing circuit 3. The processing circuit 2 performs a processing operation according to a control program, which will be described later, stored in the read-only memory 3. The random access memory 4 includes (a) a text buffer 4 for storing the above text data.
1 and (b) a keyword is input by the character input key 11 when registering the data of the sentence buffer 41, the keyword buffer 42 for temporarily storing the data of this keyword, and (c) the memory 7 Buffers 43 and 44 for temporarily storing the address data and (b) buffers 45 and 46 for temporarily storing the number of bytes of the sentence registered in the memory 7 during the processing of the contents of ,
(e) Counter 47 for counting the number of bytes of text data
And (f) address pointers 48 and 49 for temporarily storing address data, and (g) a store area 50 such as various flag buffers. The printer controller 5 controls the dot printer 6. A display device 9 such as a cathode ray tube display device is controlled by a display control circuit 8. The printer 6 records the data of the text buffer 41, and the display device 9 displays the content of the text buffer 41.

メモリ7は前述のようにフロツピーデイスクであつても
よく、あるいは電池などによつてバツクアツプされた相
補形金属酸化膜半導体ランダムアクセスメモリを含むカ
セツトであつてもよい。このメモリ7には第2図に示さ
れるようにストア領域が定められる。このメモリでは、
キーワード登録である保存登録およびキーワード登録で
ない一時登録を行なう登録領域75と、このストア領域
に新たに保存登録されるストア領域の先頭アドレス値A
2を記憶するストア領域71と、登録領域75に記憶さ
れている一時登録された文章の先頭アドレスA1を記憶
するストア領域72と、登録領域75に各種のキーワー
ドを付けて保存登録されている文章のキーワードがスト
アされているキーワードテーブル74と、このキーワー
ドテーブル74に新たに登録することができる先頭アド
レスを記憶するインデツクス領域73とを含む。ストア
領域72に記憶されている先頭アドレスを有する一時登
録される文章はキーワードが付けられていない。キーワ
ードテーブル74には、キーワード名と、それに対応す
る保存登録文章A,Bの先頭アドレスとを、対にして記
憶されている。
The memory 7 may be a floppy disk as described above, or a cassette including a complementary metal oxide semiconductor random access memory backed up by a battery or the like. In this memory 7, a store area is defined as shown in FIG. In this memory,
A registration area 75 for performing a save registration which is a keyword registration and a temporary registration which is not a keyword registration, and a head address value A of a store area newly saved and registered in this store area
2, a store area 71 for storing 2; a store area 72 for storing the start address A1 of the temporarily registered text stored in the registration area 75; and a text stored and registered with various keywords in the registration area 75. A keyword table 74 in which the keywords are stored, and an index area 73 for storing a head address that can be newly registered in the keyword table 74 are included. No keyword is attached to the temporarily stored text having the head address stored in the store area 72. In the keyword table 74, keyword names and corresponding start addresses of the stored registration sentences A and B are stored in pairs.

操作手順を簡単に説明すると、先ず文字入力キー11に
よつて希望する文章を入力し、この文章を文章バツフア
41に順次記憶する。この文章を所望のキーワードを付
けて保存登録するときには登録キー12の操作に引続い
て文字入力キー11によつてキーワード名を入力し、そ
の後実行キー14を操作する。文章バツフア41中の保
存登録すべき文字数すなわちバイト数がカウントされて
出力されるとともに、対応する文章データを登録領域7
5にストアし、そのキーワードはキーワードテーブル7
4にストアされる。この保存登録された文章を再び呼び
出すときには呼出キー13を操作し所望のキーワード名
を入力して実行キー14を操作する。これによつてキー
ワードテーブル74から対応するキーワード名が検索さ
れ、登録領域75からこの文章データを文章バツフア4
1に読出して記憶される。また文字入力キー11を操作
して入力した文章を一時登録するときには登録キー12
に引続いてキーワード名を入力することなく直ちに実行
キー14を操作する。これによつて文章バツフア41の
データが登録領域75の既に登録されているキーワード
付きの文章の後に記録される。
The operation procedure will be briefly described. First, a desired sentence is input by the character input key 11, and the sentence is sequentially stored in the sentence buffer 41. When storing and registering this sentence with a desired keyword, a keyword name is input by the character input key 11 after the operation of the registration key 12, and then the execution key 14 is operated. The number of characters to be saved and registered in the text buffer 41, that is, the number of bytes, is counted and output, and the corresponding text data is registered in the registration area 7.
5 and the keywords are the keyword table 7
Stored in 4. When recalling the stored and registered sentence, the call key 13 is operated to input a desired keyword name and the execute key 14 is operated. As a result, the corresponding keyword name is retrieved from the keyword table 74, and this sentence data is retrieved from the registration area 75 in the sentence buffer 4.
1 is read out and stored. Further, when the character input key 11 is operated to temporarily register the input text, the registration key 12
Then, the enter key 14 is immediately operated without inputting the keyword name. As a result, the data of the sentence buffer 41 is recorded after the already-registered sentence with the keyword in the registration area 75.

第3図を参照して、キーボード装置1の文字入力キー1
1を操作してステツプ110において文字を入力する。
ステツプ111では登録キー12が操作されるか否かが
判断され、そうでなければステツプ112に移り入力さ
れた文字データは文章バツフア41に転送されてストア
され編集などを行なうことができるようにするために文
章入力処理が行なわれる。この文章バツフア41にスト
アされている内容は、表示装置9によつて表示される。
Referring to FIG. 3, the character input key 1 of the keyboard device 1
1 is operated to input characters at step 110.
In step 111, it is determined whether or not the registration key 12 is operated, and if not, the character data input to step 112 is transferred to the text buffer 41 and stored therein so that it can be edited. A text input process is performed for this purpose. The contents stored in the text buffer 41 are displayed on the display device 9.

操作者は、表示装置9の表示画面を見ながら、キーワー
ドに対応して文章データを保存登録し、またはキーワー
ドなしで一時登録をしようとする文章を設定する。これ
によつて文章データのバイト数がカウントされる。登録
キー12をステツプ100において操作することによつ
て、ステツプ101ではランダムアクセスメモリ4のス
トア領域50に設けられたフラグがセットされるなどし
て、保存登録または一時登録のための登録モードが設定
される。
While looking at the display screen of the display device 9, the operator saves and registers the sentence data corresponding to the keyword, or sets the sentence to be temporarily registered without the keyword. Thereby, the number of bytes of the text data is counted. By operating the registration key 12 in step 100, a flag provided in the store area 50 of the random access memory 4 is set in step 101, and the registration mode for saving registration or temporary registration is set. To be done.

一時登録するときにはキーワード名を入力することなく
実行キー14がステツプ120において操作される。次
のステツプ121では登録モードであるか否かが判断さ
れ、そうでなければ他の処理が行なわれる。登録モード
であるときにはステツプ122に移り、キーワードバツ
フア42にデータがストアされているか否かが判断され
る。一時登録を行なうときにはこのキーワードバツフア
42にはデータが記憶されていないので、第4図のステ
ツプ132に移行する。
When temporarily registering, the execution key 14 is operated in step 120 without inputting a keyword name. In the next step 121, it is judged whether or not the mode is the registration mode, and if not, another process is performed. If it is in the registration mode, the process moves to step 122 and it is determined whether or not the data is stored in the keyword buffer 42. Since no data is stored in the keyword buffer 42 when the temporary registration is performed, the process proceeds to step 132 in FIG.

一時登録の動作において、ステツプ130ではメモリ7
のストア領域72の内容TMPを読出し、これによつて
前に一時登録されており、したがつて既に登録領域75
に一時登録領域が形成されているかが判断される。後述
されるようにストア領域72の内容TMPは、一時登録
領域が登録領域75に形成されているときには、その先
頭アドレスデータが記憶されており、形成されていなけ
ればこの内容TMPは空いている。既に一時登録領域が
登録領域75に形成されているときには、この内容TM
Pには新たなデータが書込まれて書換えられる。一時登
録領域が登録領域75に形成されていないのであればス
テツプ131に移り、ストア領域71の内容TEXTで
あるアドレスデータがストア領域72の内容TMPとな
つて転送される。このステツプ131の実行によつて第
2図に示されるアドレスA1は、ストア領域71にスト
アされていると同時に、ストア領域72にもストアされ
ることになる。次のステツプ132では、ストア領域7
2の内容TMPがバツフア43の内容STMPとして転
送され、前述のように文章バツフア41に記憶される。
登録されるべき文章のバイト数を読出しバツフア46の
内容TEXTBYTとしてステツプ133において転送
される。ステツプ134ではバツフア43のストア内容
STMPとバツフア46の内容TEXTBYTとが加算
され、換言すると一時登録するストア領域の先頭アドレ
スに登録文のバイト数を加算して、一時登録領域の最後
の位置次のアドレス値が求められ、バツフア44の内容
STEXTとして記憶される。さらにこのバツフア44
の内容STEXTとメモリ7の最終アドレスnとをステ
ツプ135において比較し、内容STEXTがnを越え
るときにはメモリ7への登録が不可能としてエラー処理
を行なう。内容STEXTがn以下であるときには、ス
テツプ136に移りストア領域72の内容TMPをポイ
ンタ48の内容AP1として転送し、ステツプ137に
おいてカウンタ47の内容Kをリセツトする。その後ス
テツプ138〜141の動作によつて、登録領域75の
一時登録領域に文章バツフア41の登録すべき文章を順
次転送して記憶する。もつと詳しく述べると、ステツプ
138においてカウンタ47の内容Kを1だけ加算し、
ステツプ139において文章バツフア41のデータを登
録領域75のポインタ48の内容AP1に対応するアド
レス位置に記憶する。この文章バツフア41のデータ
は、登録すべき文章のバイト数を有している。ステツプ
140ではカウンタ47のストア内容とバツフア45の
内容TEXTBYTとが等しいかどうかが判断され、一
致するまでステツプ141においてポインタ48の内容
AP1が1キヤラクタ分ずつ増加して転送処理が繰返さ
れる。内容TEXTBYTはバイト数を表わしている。
In the temporary registration operation, in step 130, the memory 7
The contents TMP of the store area 72 of the storage area 72 are read out, and thus the TMP has been previously registered temporarily.
It is determined whether or not the temporary registration area is formed. As will be described later, in the content TMP of the store area 72, when the temporary registration area is formed in the registration area 75, its head address data is stored, and if it is not formed, this content TMP is empty. When the temporary registration area is already formed in the registration area 75, the contents TM
New data is written in P and rewritten. If the temporary registration area is not formed in the registration area 75, the process proceeds to step 131, and the address data which is the content TEXT of the store area 71 is transferred as the content TMP of the store area 72. By the execution of this step 131, the address A1 shown in FIG. 2 is stored in the store area 71 and at the same time is stored in the store area 72. In the next step 132, the store area 7
The content TMP of 2 is transferred as the content STMP of the buffer 43 and stored in the sentence buffer 41 as described above.
The number of bytes of the text to be registered is transferred at step 133 as the content TEXTBYT of the read buffer 46. In step 134, the stored contents STMP of the buffer 43 and the contents TEXTBYT of the buffer 46 are added, in other words, the number of bytes of the registration statement is added to the start address of the temporarily registered store area, and the last position of the temporary registration area The address value is determined and stored as the contents STEXT of buffer 44. Furthermore, this buffer 44
In step 135, the content STEXT of the above is compared with the final address n of the memory 7, and when the content STEXT exceeds n, it is determined that registration in the memory 7 is impossible and error processing is performed. When the content STEXT is less than or equal to n, the content TMP of the store area 72 is transferred as the content AP1 of the pointer 48 to the step 136, and the content K of the counter 47 is reset at the step 137. Then, by the operations of steps 138 to 141, the sentences to be registered in the sentence buffer 41 are sequentially transferred and stored in the temporary registration area of the registration area 75. More specifically, in step 138, the content K of the counter 47 is incremented by 1, and
In step 139, the data of the text buffer 41 is stored in the address area corresponding to the content AP1 of the pointer 48 in the registration area 75. The data of the text buffer 41 has the number of bytes of the text to be registered. In step 140, it is determined whether the stored content of the counter 47 and the content TEXTBYT of the buffer 45 are equal, and the content AP1 of the pointer 48 is incremented by 1 charac- ter by 1 in step 141 until the contents match, and the transfer process is repeated. The content TEXTBYT represents the number of bytes.

ステツプ140において一致判定が行なわれると、ステ
ツプ142に移行して、ステツプ132によつて一時登
録領域の先頭アドレス値を記憶するバツフア43の内容
STMPをメモリ7のストア領域TMPに記憶する。ま
たステツプ143では、前述のステツプ134によつ
て、次の新たなデータを登録する際の先頭アドレスとな
るアドレス値を記憶しているバツフア44の内容STE
XTを、メモリ7のストア領域TEXTに記憶する。こ
のような動作によつて登録文が、メモリ7の登録領域7
5の前の登録文章、すなわち第2図の参照符Bで示され
ている文章に引続いて一時登録される。
When a match determination is made in step 140, the process proceeds to step 142, and the content STMP of the buffer 43 storing the start address value of the temporary registration area is stored in the store area TMP of the memory 7 by the step 132. Further, in step 143, the contents STE of the buffer 44 storing the address value which becomes the top address when the next new data is registered by the above-mentioned step 134.
The XT is stored in the store area TEXT of the memory 7. By such an operation, the registration sentence is stored in the registration area 7 of the memory 7.
The registered text before 5, that is, the text indicated by reference numeral B in FIG. 2 is temporarily registered.

キーワード名を付加して保存登録する動作について説明
する。キーワード名の入力のために文字入力がなされる
と、第3図のステツプ110以降のステツプが実行さ
れ、ステツプ111において登録モードであることが判
定され、入力文字データをキーワードバツフア42にス
テツプ112において記憶し、このようにして文字が入
力されるたび毎に各ステツプ110〜112が繰返され
る。ステツプ111において登録モードでないことが判
断されれば、通常の文章入力として処理されることにな
る。その後実行キー14が操作されると、ステツプ12
0以降の動作が行なわれる。ステツプ122においてキ
ーワードバツフア42にデータがあるか否かが判断され
る。いまキーワードバツフア42にはデータが存在し、
したがつてキーワード名を付加して保存登録を行なうた
めに、第4図のステツプ150に移行する。ストア領域
71の内容TEXTは、ステツプ150においてバツフ
ア44の内容STEXTとしてストアされる。すなわち
登録領域75の新たに登録すべき領域の先頭アドレス
が、バツフア44の内容STEXTとして記憶されるこ
とになる。引続いて前述のステツプ133,134,1
35と同様にして、ステツプ151では文章バツフア4
1の登録文のバイト数をバツフア45の内容TEXTB
YTとして記憶し、ステツプ152ではバツフア44の
内容STEXTとバツフア46の内容TEXTBYTと
を加算してバツフア44の内容STEXTとして記憶
し、メモリ7の最終アドレスnとステツプ153におい
て比較を行なう。
The operation of adding and storing a keyword name will be described. When a character is input to input a keyword name, steps 110 and subsequent steps in FIG. 3 are executed, it is determined in step 111 that the mode is the registration mode, and the input character data is transferred to the keyword buffer 42 in step 112. , And each step 110-112 is repeated each time a character is input in this way. If it is determined in step 111 that the mode is not the registration mode, it is processed as a normal text input. After that, when the execution key 14 is operated, the step 12
Operations after 0 are performed. In step 122, it is judged whether or not there is data in the keyword buffer 42. There is data in the keyword buffer 42 now,
Therefore, in order to add the keyword name and perform the storage registration, the process proceeds to step 150 in FIG. The content TEXT of the store area 71 is stored in step 150 as the content STEXT of the buffer 44. That is, the start address of the newly registered area of the registration area 75 is stored as the content STEXT of the buffer 44. Subsequently, the above steps 133, 134, 1
In the same way as in step 35, in step 151, the sentence buffer 4
The number of bytes of the registration text of 1 is the content of the buffer 45 TEXTB
In step 152, the contents STEXT of the buffer 44 and the contents TEXTBYT of the buffer 46 are added and stored as the contents STEXT of the buffer 44, and the final address n of the memory 7 is compared with the step 153.

今、メモリ7の一時登録領域が、まだ形成されていない
ものと想定する。すなわちストア領域72の内容は空白
(Null)となつている。したがつてステツプ154
からステツプ155に移り、ストア領域71の内容TE
XTがポインタ48に転送される。以後は前述のステツ
プ137〜141と同様にステツプ156〜160にお
いて動作が行なわれ、文章バツフア41の登録文が登録
領域75に転送されて記憶される。このような動作によ
つてバツフア44の内容STEXTはステツプ152に
おいて次の登録する領域の先頭アドレスが記憶され、バ
ツフア43の内容STMPは初期状態の空白(Nul
l)となる。
Now, assume that the temporary registration area of the memory 7 is not yet formed. That is, the content of the store area 72 is blank. Therefore, step 154
To step 155, the contents TE of the store area 71
XT is transferred to pointer 48. After that, the same operations as in steps 137 to 141 are performed in steps 156 to 160, and the registered sentence of the sentence buffer 41 is transferred to the registration area 75 and stored therein. By such an operation, the content STEXT of the buffer 44 stores the start address of the area to be registered next in step 152, and the content STMP of the buffer 43 is blank (Nul in the initial state).
l).

引続きステツプ161に移りメモリ7のインデツクスエ
リア73に記憶されているキーワードテーブル74の新
たな記憶されるべき先頭アドレス値を読出し、キーワー
ドテーブル74の対応するアドレスを選択する。ステツ
プ162では、このキーワードテーブル74の選択され
た位置から、順にキーワードバツフア42にキーワード
データを記憶する。ステツプ163ではこのデータに引
続いてストア領域71の内容TEXT、すなわちいま登
録した文章の登録領域75の先頭アドレスがキーワード
テーブル74に転送されて記憶される。次にキーワード
テーブル74の次のストア領域のアドレス値を、インデ
ツクスエリア73に記憶して、ステツプ164において
更新する。その後前述のステツプ142,143の動作
によつて、ストア領域71の内容TEXTは登録領域7
5の次のアドレス値、すなわちバツフア44の内容ST
EXTが記憶され、ストア領域72の内容は空白のまま
変化しない。
Then, in step 161, a new head address value to be stored in the keyword table 74 stored in the index area 73 of the memory 7 is read out and the corresponding address in the keyword table 74 is selected. In step 162, the keyword data is stored in the keyword buffer 42 in order from the selected position in the keyword table 74. In step 163, following this data, the content TEXT of the store area 71, that is, the start address of the registered area 75 of the sentence just registered is transferred to and stored in the keyword table 74. Next, the address value of the next store area of the keyword table 74 is stored in the index area 73 and updated in step 164. After that, the contents TEXT of the store area 71 is changed to the registration area 7 by the operations of the above-mentioned steps 142 and 143.
5 next address value, ie the contents ST of buffer 44
EXT is stored, and the contents of the store area 72 remain blank and do not change.

ステツプ154における判断時に登録領域75において
一時登録領域が形成されている場合の登録動作を説明す
る。いまメモリ7のストア状態の詳細は第5図(1)のよ
うになつているものと想定する。ストア領域71の内容
TEXTは新しい登録領域75の先頭アドレスAnであ
り、ストア領域72の内容TMPは一時登録領域の先頭
アドレスAmである。インデツクスエリア73には、内
容AIが記憶されている。一時登録の前にはキーワード
名「XYZ」の文章が先頭アドレスA として記憶され
ており、キーワードテーブル「XYZA 」が記憶さ
れ、次のアドレスAIをインデツクスエリア73に記憶
している。
The registration operation when the temporary registration area is formed in the registration area 75 at the time of the determination in step 154 will be described. Now, assume that the details of the stored state of the memory 7 are as shown in FIG. 5 (1). The content TEXT of the store area 71 is the start address An of the new registration area 75, and the content TMP of the store area 72 is the start address Am of the temporary registration area. The contents AI are stored in the index area 73. Before the temporary registration, the text of the keyword name "XYZ" is stored as the head address A 1, the keyword table "XYZA" is stored, and the next address AI is stored in the index area 73.

第4図を参照して、ステツプ154からステツプ170
に移る。バツフア44の内容STEXTは、第5図(2)
で示されるアドレスAqが記憶されている。このステツ
プ170では内容STEXTから1キヤラクタ分のアド
レス値が減算され、(Aq−1)がアドレスポインタ4
9の内容AP2として記憶される。ステツプ171で
は、一時登録されるべき文章の先頭アドレスに記憶すべ
き一時登録すべき文章のバイト数が読出されて、バツフ
ア45の内容TMPBYTとして記憶される。ステツプ
172ではストア領域71の内容TEXTから1キヤラ
クタ分だけ減じられたアドレス値すなわち(An−1)
がポインタ48の内容AP1として記憶される。ステツ
プ173ではカウンタ47の内容Kがリセツトされ、そ
の後ステツプ174〜177が実行され、一時登録すべ
き文章「バイト数データ」および「日本語…あい」がア
ドレス(Aq−1)を最終アドレスとして下位へ繰下げ
られる。もつと詳しく述べると、カウンタ47の内容が
ステツプ174において1だけ加算され、ステツプ17
5においてポインタ48の内容AP1の位置に対応する
登録領域75のデータを読出してポインタ49の内容A
P2が表わしているアドレス位置(Aq−1)に転送す
る。ステツプ176では、カウンタ47の内容Kがバツ
フア45の内容TMPBYT、すなわち一時登録文のバ
イト数に等しいか否かが判断され、等しくなければステ
ツプ177においてポインタ48,49の内容AP1,
AP2が1キヤラクタ分だけそれぞれ減じられる。ステ
ツプ174〜177の動作が繰返されることによつて、
ポインタ48の内容AP1はAn−1,An−2,…と
変化し、ポインタ49の内容AP2はAq−1,Aq−
2,…と変化して行く。
Referring to FIG. 4, steps 154 to 170
Move on to. The content STEXT of the buffer 44 is shown in Fig. 5 (2).
The address Aq indicated by is stored. In this step 170, the address value for one character is subtracted from the content STEXT, and (Aq-1) becomes the address pointer 4
9 content AP2 is stored. At step 171, the number of bytes of the text to be temporarily registered to be stored at the head address of the text to be temporarily registered is read and stored as the content TMPBYT of the buffer 45. In step 172, the address value obtained by subtracting one character from the content TEXT of the store area 71, that is, (An-1).
Is stored as the content AP1 of the pointer 48. At step 173, the content K of the counter 47 is reset, then steps 174 to 177 are executed, and the texts "byte number data" and "Japanese ... ai" to be temporarily registered are set to the lower address with the address (Aq-1) as the final address. Be moved to. More specifically, the contents of the counter 47 are incremented by 1 in step 174, and
5, the data in the registration area 75 corresponding to the position of the content AP1 of the pointer 48 is read and the content A of the pointer 49 is read.
Transfer to the address position (Aq-1) represented by P2. At step 176, it is judged whether the content K of the counter 47 is equal to the content TMPBYT of the buffer 45, that is, the number of bytes of the temporary registration text. If they are not equal, at step 177, the contents AP1 of the pointers 48 and 49, AP1.
AP2 is reduced by one character each. By repeating the operations of steps 174 to 177,
The content AP1 of the pointer 48 changes to An-1, An-2, ... And the content AP2 of the pointer 49 changes Aq-1, Aq-.
It changes with 2, ...

ステツプ176においてカウンタ47の内容Kがバツフ
ア45の内容と等しくなつたとき、ステツプ178に移
りポインタ49の内容AP2が表わすアドレスデータが
バツフア43の内容STMPとして記憶される。すなわ
ち第5図(2)に示されているアドレスARがバツフア4
3に記憶されることになる。その後ステツプ179にお
いて、ストア領域72の内容TMPすなわちアドレスA
mが、ポインタ48の内容AP1として転送される。そ
の後ステツプ180〜184が実行されることによつ
て、先に説明したステツプ137〜141と同様な動作
が行なわれ、文章バツフア41の登録文が先頭アドレス
Amとして順次登録領域75に記憶される。ステツプ1
83においてカウンタ47の内容Kがバツフア46の内
容TEXTBYTと一致したとき、ステツプ161に移
りストア領域71の内容TEXTが内容の値Aqとして
ストアされ、ストア領域72の内容TMPはARとな
り、インデツクスエリア73の内容はAjに更新され、
これによつて第5図(2)のようなストア状態が達成され
る。このようにして一時登録領域が常に空白の領域に形
成されることになり、メモリ7を高効率で使用すること
ができる。
When the content K of the counter 47 becomes equal to the content of the buffer 45 in step 176, the process moves to step 178 and the address data indicated by the content AP2 of the pointer 49 is stored as the content STMP of the buffer 43. That is, the address AR shown in FIG. 5 (2) is the buffer 4
3 will be stored. After that, in step 179, the contents TMP of the store area 72, that is, the address A
m is transferred as the content AP1 of the pointer 48. Then, by executing steps 180 to 184, the same operation as in steps 137 to 141 described above is performed, and the registered sentence of the sentence buffer 41 is sequentially stored in the registration area 75 as the head address Am. Step 1
When the content K of the counter 47 matches the content TEXTBYT of the buffer 46 at 83, the process moves to step 161, the content TEXT of the store area 71 is stored as the content value Aq, the content TMP of the store area 72 becomes AR, and the index area The content of 73 is updated to Aj,
As a result, the store state as shown in FIG. 5 (2) is achieved. In this way, the temporary registration area is always formed in a blank area, and the memory 7 can be used with high efficiency.

本発明は、文書処理装置に関連して実施されるだけでな
く、文章データ以外のデータを処理するその他のデータ
処理装置に関してもまた実施することができる。
The present invention can be implemented not only in the context of a document processing device, but also in other data processing devices that process data other than text data.

また本発明では、ランダムアクセスメモリ4に代えてそ
の他の構成を有するメモリを用いてもよく、また不揮発
性メモリ7に代えてその他の構成を有するメモリであっ
てもよい。
Further, in the present invention, a memory having another configuration may be used instead of the random access memory 4, and a memory having another configuration may be used instead of the non-volatile memory 7.

効 果 以上のように本発明によれば、作成した文章等データを
一時的にフロッピーディスク等のメモリに登録可能とし
たものであり、特に該一時登録データを複数のキーワー
ド付き登録データが記憶される領域と同一の第1ストア
領域に記憶させ、しかも該第1ストア領域において該一
時登録データを唯一のものとするため、キーワード付き
登録データの記憶アドレスを管理する第2ストア領域と
は別に、一時登録データが記憶される度に新しい記憶ア
ドレスを旧の記憶アドレスに換えて記憶管理する第3ス
トア領域を設けたものであるので、文章等のデータの一
時登録制御に関して、一時登録用の固定領域を設けない
で一時登録制御を行うことが出来るため、文章等のデー
タの一時登録制御を効率的に行うという効果がある。
As described above, according to the present invention, the created text data can be temporarily registered in a memory such as a floppy disk. Particularly, the temporary registration data is stored as a plurality of registration data with keywords. In addition to the second store area that manages the storage address of the keyword-added registration data in order to store the temporary registration data uniquely in the first store area, which is the same as the first store area, Since a third store area is provided for storing and managing the new storage address by replacing the old storage address each time the temporary registration data is stored, fixed temporary registration for temporary registration control of data such as text. Since the temporary registration control can be performed without providing a region, there is an effect that the temporary registration control of the data such as text is efficiently performed.

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

第1図は本発明の一実施例の全体のブロツク図、第2図
はメモリ7の記憶状態を示す図、第3図および第4図は
第1図示の実施例の動作を説明するためフローチヤー
ト、第5図はメモリ7の一時登録動作を説明するための
メモリ7の記憶状態を示す図である。 1……キーボード装置、2……処理回路、3……リード
オンリメモリ、4……ランダムアクセスメモリ、6……
プリンタ、7……不揮発性メモリ、9……表示装置
FIG. 1 is an overall block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing a storage state of the memory 7, and FIGS. 3 and 4 are flow charts for explaining the operation of the embodiment shown in FIG. FIG. 5 is a diagram showing a storage state of the memory 7 for explaining the temporary registration operation of the memory 7. 1 ... Keyboard device, 2 ... Processing circuit, 3 ... Read-only memory, 4 ... Random access memory, 6 ...
Printer, 7 ... Nonvolatile memory, 9 ... Display device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】文書等のデータを入力する入力部と、 前記入力部から入力されたデータを記憶する第1メモリ
と、 前記第1メモリに記憶されたデータを複数保存登録する
第2メモリとを有する文書処理装置であって、 前記第2メモリに、複数のデータを記憶する第1ストア
領域と、該第1ストア領域に記憶されたデータのアドレ
ス値と該データのキーワードと対応づけて複数記憶する
第2ストア領域と、該第1ストア領域に記憶されたデー
タのアドレス値を唯一記憶する第3ストア領域とを設
け、 前記第1メモリに記憶されたデータの前記第2メモリへ
の保存登録指示がキーワード登録の場合には前記第1ス
トア領域の空きアドレス位置にデータを記憶すると共に
前記第2ストア領域にキーワードとアドレス値を追加記
憶し、 一時登録の場合には前記第1ストア領域の空きアドレス
位置あるいは既に一時登録データが記憶されている場合
その一時登録データのアドレス位置にデータを記憶する
と共に前記第3ストア領域のアドレス値を書換記憶する
登録制御手段を備えたことを特徴とするデータ処理装
置。
1. An input unit for inputting data such as a document, a first memory for storing the data input from the input unit, and a second memory for storing and registering a plurality of data stored in the first memory. A document processing apparatus including: a plurality of first storage areas for storing a plurality of data, a plurality of address values of data stored in the first storage area, and keywords of the data in the second memory. A second store area for storing and a third store area for uniquely storing the address value of the data stored in the first store area are provided, and the data stored in the first memory is stored in the second memory. When the registration instruction is the keyword registration, the data is stored in the empty address position of the first store area and the keyword and the address value are additionally stored in the second store area. The registration control means stores data in an empty address position of the first store area or in the address position of the temporary registration data when the temporary registration data is already stored, and rewrites and stores the address value of the third store area. A data processing device comprising:
JP57234429A 1982-12-28 1982-12-28 Data processing device Expired - Lifetime JPH0619778B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57234429A JPH0619778B2 (en) 1982-12-28 1982-12-28 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57234429A JPH0619778B2 (en) 1982-12-28 1982-12-28 Data processing device

Publications (2)

Publication Number Publication Date
JPS59123036A JPS59123036A (en) 1984-07-16
JPH0619778B2 true JPH0619778B2 (en) 1994-03-16

Family

ID=16970873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57234429A Expired - Lifetime JPH0619778B2 (en) 1982-12-28 1982-12-28 Data processing device

Country Status (1)

Country Link
JP (1) JPH0619778B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2545530B2 (en) * 1987-02-25 1996-10-23 キヤノン株式会社 Document processing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56152076A (en) * 1980-04-23 1981-11-25 Fujitsu Ltd Device for drawing up document having function of registering document
JPS5736362A (en) * 1980-08-11 1982-02-27 Toshiba Corp Word processor
JPS57172470A (en) * 1981-04-15 1982-10-23 Sharp Corp Registration name control system of registered sentence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Newton別冊1「ワードプロセッサのすべて」(1982−5−20)教育社P.213

Also Published As

Publication number Publication date
JPS59123036A (en) 1984-07-16

Similar Documents

Publication Publication Date Title
JPH03266039A (en) Free format data link processing system
JPH0619778B2 (en) Data processing device
JPH0225546B2 (en)
JPH0125098B2 (en)
JPS58163036A (en) Automatic numbering device
JP3764987B2 (en) Document processing device
JP2990312B2 (en) Data access method and device
JPH0612548B2 (en) Document processor
JPH0452859A (en) Character processor
JPS62173565A (en) Data register system in sentence processor
JPS6365988B2 (en)
JPH0546349A (en) Information processor
JP2697901B2 (en) Character processor
JP3381069B2 (en) Data processing device
JP2959490B2 (en) String addition method
JPH0721166A (en) Word processor with document information confirming function
JPH05324734A (en) Electronic filing device
JPH069043B2 (en) Character processing method
JPH0528150A (en) Method and device for processing document
JPS6238971A (en) Documentation device
JPH0287269A (en) Data controller
JPS62243027A (en) Message displaying method for personal computer
JPS6345672A (en) Compiling method
JPH07199898A (en) Device and method for displaying character
JPH07325740A (en) Information processor