JPH0750470B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JPH0750470B2
JPH0750470B2 JP61230147A JP23014786A JPH0750470B2 JP H0750470 B2 JPH0750470 B2 JP H0750470B2 JP 61230147 A JP61230147 A JP 61230147A JP 23014786 A JP23014786 A JP 23014786A JP H0750470 B2 JPH0750470 B2 JP H0750470B2
Authority
JP
Japan
Prior art keywords
calculation
data
memory
recalculation
coordinate
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
JP61230147A
Other languages
Japanese (ja)
Other versions
JPS6385959A (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.)
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 JP61230147A priority Critical patent/JPH0750470B2/en
Publication of JPS6385959A publication Critical patent/JPS6385959A/en
Publication of JPH0750470B2 publication Critical patent/JPH0750470B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、表示画面上に表示された表について表計算
を行なうワードプロセッサ等のデータ処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device such as a word processor which performs a spreadsheet on a table displayed on a display screen.

[従来の技術] 従来、ワードプロセッサにおいては、任意の大きさの表
を文章内に作成することができる作表機能を備えたもの
が実用化され、これにより売上管理表や成績表あるい
は、見積表等を容易に作成することができるようになっ
ている。
[Prior Art] Conventionally, a word processor having a tabulation function capable of creating a table of an arbitrary size in a sentence has been put into practical use. Etc. can be easily created.

[発明が解決しようとする課題] しかしながら、この種の作表機能付きワードプロセッサ
において、例えば、売上管理表を作成するような場合
に、商品別売上合計個数や合計金額あるいは総売上個数
や総売上金額を予め小型電子式計算機等で計算しなけれ
ばならず、その結果、作表を効率良く行うことができな
いという欠点があった。
[Problems to be Solved by the Invention] However, in a word processor with a tabulation function of this kind, for example, when a sales management table is created, the total sales quantity and total amount by product or the total sales quantity and total sales amount Has to be calculated in advance by a small electronic calculator or the like, and as a result, there is a drawback that tabulation cannot be performed efficiently.

この発明の課題は、表示画面上に表示された表につい
て、任意の表計算を任意のデータ位置を対象として実行
できると共に、極めて簡単な操作によって、再計算位置
を任意に指定し、同一形式の表計算を再度実行できるよ
うにすることである。
An object of the present invention is to perform an arbitrary table calculation on a table displayed on a display screen at an arbitrary data position, and to specify a recalculation position arbitrarily by an extremely simple operation to obtain the same format. It is to be able to execute the spreadsheet again.

[課題を解決するための手段] この発明の手段は、表示画面上に表を表示する表示手段
と、この表示画面上に表示された表に対して、表計算を
行なう計算を任意に指定する計算指定手段と、上記表示
画面上に表示された表において、表計算の対象とするデ
ータ位置をカーソル位置によって任意に指定するデータ
位置指定手段と、このデータ位置を記憶するデータ位置
記憶手段と、上記データ位置に基づいて上記表のデータ
を読み出し、このデータに基づいて上記計算指定手段で
指定された計算を実行する計算制御手段と、上記表示画
面上にカーソルを表示すると共に、表計算を実行する再
計算位置を上記カーソル位置によって任意に指定する再
計算位置指定手段と、この再計算位置を記憶する再計算
位置記憶手段と、上記再計算位置に基づいて上記データ
位置を変更し、この変更されたデータ位置に基づいて上
記再計算位置に対応する表のデータを読み出し、このデ
ータに基づいて、上記計算制御手段で実行された計算と
同一形式の表計算を再度実行する再計算制御手段とを具
備したことを特徴とする。
[Means for Solving the Problem] The means of the present invention arbitrarily specifies a display means for displaying a table on a display screen and a calculation for performing a table calculation on the table displayed on the display screen. Calculation specifying means, in the table displayed on the display screen, a data position specifying means for arbitrarily specifying a data position to be subjected to spreadsheet calculation by a cursor position, and a data position storing means for storing the data position, The data in the table is read out based on the data position, the calculation control means for executing the calculation specified by the calculation specifying means based on the data, the cursor is displayed on the display screen, and the table calculation is executed. Based on the recalculation position, recalculation position designating means for arbitrarily designating the recalculation position by the cursor position, recalculation position storage means for storing the recalculation position, Change the data position, read the data of the table corresponding to the recalculation position based on the changed data position, and based on this data, a table of the same format as the calculation executed by the calculation control means. Recalculation control means for executing the calculation again is provided.

[作用] この発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

まず、予め作成された表を表示画面上に表示させる。こ
の状態で、計算指定手段によって表計算を行なう計算を
任意に指定し、データ位置指定手段により表示画面上に
表示された表において、表計算の対象とするデータ位置
をカーソル位置によって任意に指定すると、このデータ
位置がデータ位置記憶手段に記憶され、計算制御手段が
記憶されたデータ位置に基づいて表のデータを読み出
し、このデータに基づいて計算指定手段で指定された計
算を実行する。そして、再計算位置指定手段が表示画面
上にカーソルを表示すると共に、表計算を実行する再計
算位置をカーソル位置によって任意に指定すると、この
再計算位置が再計算位置記憶手段に記憶され、再計算制
御手段が指定された再計算位置に基づいて上記データ位
置を変更し、この変更されたデータ位置に基づいて上記
再計算位置に対応する表のデータを読み出し、このデー
タに基づいて、上記計算制御手段で実行された計算と同
一形式の表計算を再度実行する。
First, a table created in advance is displayed on the display screen. In this state, when the calculation specifying means arbitrarily specifies the calculation for the table calculation, and in the table displayed on the display screen by the data position specifying means, the data position targeted for the table calculation is arbitrarily specified by the cursor position. The data position is stored in the data position storage means, the calculation control means reads out the data in the table based on the stored data position, and the calculation designated by the calculation designation means is executed based on this data. Then, the recalculation position designating means displays a cursor on the display screen, and when the recalculation position for executing the spreadsheet is arbitrarily designated by the cursor position, the recalculation position is stored in the recalculation position storage means and recalculated. The calculation control means changes the data position based on the designated recalculation position, reads the data in the table corresponding to the recalculation position based on the changed data position, and calculates the calculation based on this data. A spreadsheet with the same format as the calculation performed by the control means is executed again.

[実施例] 以下、この発明を第1図〜第9図を参照して具体的に説
明する。なお、本実施例は作表機能付きワードプロセッ
サに適用した例を示している。
[Embodiment] Hereinafter, the present invention will be specifically described with reference to FIGS. 1 to 9. The present embodiment shows an example applied to a word processor with a tabulation function.

構成 第1図はこのワードプロセッサの基本的なブロック回路
図である。図中11はこのワードプロセッサの入力部で、
このキーボード上には、数字キーKA、文字キーKB、実行
キーKC、ファンクションキーKD、カーソルキーKE、再計
算キーKF、横計算キーKG、縦計算キーKH、表集計キーKI
が設けられている。ここで、再計算キーKFは同一形式の
表計算を繰り返して実行する場合に操作されるキー、横
計算キーKGは各種の表計算のうち、表の横方向(桁方
向)に対する表計算を実行させるキー、縦計算キーKHは
表の縦方向(行方向)に対する表計算を実行させるキー
である。更に、表集計キーKJは、表内の数値を縦方向、
横方向に累計する通常の表計算を実行させるキーであ
る。しかして入力部11から操作キーに対応して出力され
るキー入力信号は、入力制御部12に送られてキーコード
に変換されたのちCPU(中央演算処理回路)13に取り込
まれ、その入力処理プログラムを指定する。
Structure FIG. 1 is a basic block circuit diagram of this word processor. In the figure, 11 is the input part of this word processor,
Numeric key KA, character key KB, execution key KC, function key KD, cursor key KE, recalculation key KF, horizontal calculation key KG, vertical calculation key KH, tabulation key KI on this keyboard.
Is provided. Here, the recalculation key KF is a key that is operated when repeatedly executing the same format table calculation, and the horizontal calculation key KG executes the table calculation in the horizontal direction (column direction) of the table among various table calculations. A key for making a calculation and a vertical calculation key KH are keys for making a table calculation in the vertical direction (row direction) of the table. Furthermore, the tabulation key KJ is used to set the values in the table in the vertical direction,
It is a key to execute normal spreadsheets that accumulate horizontally. Then, the key input signal output from the input unit 11 corresponding to the operation key is sent to the input control unit 12 and converted into a key code, which is then taken in by the CPU (central processing unit) 13 to perform the input processing. Specify the program.

CPU13は予め記憶されているマイクロプログラムにした
がって入力処理、文書作成処理、表示処理、印字処理等
を実行すると共に、本実施例にあっては表計算が実行可
能となっている。そして、CPU13には表計算時における
各種の計算モード(縦計算モード、横計算モード、表集
計モード)を指定するモードレジスタMが設けられてい
る。また、CPU13にはテキストメモリ(文章メモリ)14
が接続され、入力された文書データがコード化されて書
き込まれる。
The CPU 13 executes an input process, a document creation process, a display process, a print process, etc. in accordance with a microprogram stored in advance, and can execute a spreadsheet in this embodiment. The CPU 13 is provided with a mode register M for designating various calculation modes (vertical calculation mode, horizontal calculation mode, table tabulation mode) during table calculation. The CPU 13 has a text memory (sentence memory) 14
Is connected, and the input document data is encoded and written.

文章メモリ14はRAM(ランダムアクセスメモリ)によっ
て構成され、CPU13の制御下でデータの書き込み、読み
出し動作が制御されると共に、テキストポインタ15の値
にしたがってその書き込みあるいは読み出しアドレスが
指定される。
The text memory 14 is composed of a RAM (random access memory), and the writing and reading operations of data are controlled under the control of the CPU 13, and the writing or reading address is specified according to the value of the text pointer 15.

演算バッファ16は表計算実行時に計算手順メモリ20から
読み出された計算手順が一次記憶されるもので、この内
容は演算部17に送られてモードレジスタMの内容に応じ
た表計算が実行される。この演算部17で算出された演算
結果は、CPU13に取り込まれ、文章メモリ14に書き込ま
れる。
The calculation buffer 16 temporarily stores the calculation procedure read from the calculation procedure memory 20 when executing the table calculation, and the contents thereof are sent to the calculation unit 17 to execute the table calculation according to the contents of the mode register M. It The calculation result calculated by the calculation unit 17 is taken into the CPU 13 and written in the text memory 14.

表示部18は例えばCRT表示装置によって構成され、CPU13
から出力された表示用データが表示制御部19で表示駆動
信号に変換されることにより1画面分のデータを表示す
る。
The display unit 18 is composed of, for example, a CRT display device, and has a CPU 13
The display control unit 19 converts the display data output from the display drive signal into a display drive signal to display one screen of data.

計算手順メモリ20は表計算実行用の計算手順を記憶する
もので、計算手順として定義できるのは、横計算、縦計
算である。また、出力位置メモリ21は、表計算の結果を
表のどの位置に書き込むかの出力位置を記憶するもの
で、この出力位置は文章メモリ14の二次元座標によって
表わされる。なお、計算手順メモリ20に書き込まれる計
算手順や出力位置メモリ21に書き込まれる出力位置は入
力部11から任意に入力設定されたもので、これらの内容
は表計算実行時に、CPU13に取り込まれ、演算バッファ1
6にセットされる。
The calculation procedure memory 20 stores the calculation procedure for executing the spreadsheet calculation, and horizontal calculation and vertical calculation can be defined as the calculation procedure. Further, the output position memory 21 stores an output position at which position in the table the result of the table calculation is to be written, and this output position is represented by the two-dimensional coordinates of the text memory 14. The calculation procedure written in the calculation procedure memory 20 and the output position written in the output position memory 21 are arbitrarily set by the input unit 11.These contents are fetched by the CPU 13 at the time of executing the spreadsheet and calculated. Buffer 1
Set to 6.

座標メモリ22は文章メモリ14の各種の座標位置データ(x
0、y0)、(α、β)、(Δα、Δβ)、(A、B)を記
憶するもので、これらは表計算実行用の式を入力する場
合や表計算実行時に使用され、CPU13に取り込まれる。
The coordinate memory 22 stores various coordinate position data (x
0 , y 0 ), (α, β), (Δα, Δβ), (A, B) are stored, and these are used when inputting a formula for executing spreadsheet calculation or when executing spreadsheet calculation. Is taken into.

動作 先ず、通常のキー操作手順にしたがって文章メモリ14内
に罫線で囲まれた表を作成する。例えば、第2図に示す
ような表を文章メモリ14内に作成したものとする。この
場合、表を構成する各表項目は縦方向に3個、横方向に
3個設けられ、その下側3個、右側3個を除く各表項目
には、上に「10」、「40」下に「20」、「30」の如く二
次元配列された数値(計算対象)が書き込まれている。
なお、図中、(1、1)〜(3、3)は1行1桁目から
3行3桁目までの表項目に対応し、また、文章メモリ14
の座標位置は、図中左上端部を基点(1、1)として定
められている。
Operation First, a table surrounded by ruled lines is created in the text memory 14 according to a normal key operation procedure. For example, assume that a table as shown in FIG. 2 is created in the text memory 14. In this case, there are three vertical table items and three horizontal table items. Each table item except the lower three items and the right three items is “10” and “40” above. The numerical value (calculation target) that is two-dimensionally arranged like "20" and "30" is written under ".
In the figure, (1, 1) to (3, 3) correspond to the table items from the 1st row and 1st column to the 3rd row and 3rd column, and the text memory 14
The coordinate position of is determined with the upper left end in the figure as the base point (1, 1).

次に、上述のようにして文章メモリ14内に作成された表
に基いた表計算を実行する場合について説明する。
Next, a case will be described in which table calculation based on the table created in the text memory 14 as described above is executed.

第3図は横計算キーKCを操作したときに実行開始される
フローチャートである。文章メモリ14内に作成した表を
表示部18に表示させた状態において、カーソルキーKEを
操作してカーソルを移動し表の基準位置(第2図中左上
端位置)にセットする。そして、実行キーKCを操作する
と、その座標位置(4、2)が座標メモリ22に基準位置
座標(x0、y0)として転送記憶される(ステップS1、S
2)。
FIG. 3 is a flowchart which is started when the horizontal calculation key KC is operated. With the table created in the text memory 14 displayed on the display unit 18, the cursor key KE is operated to move the cursor and set it at the reference position (upper left end position in FIG. 2) of the table. When the execution key KC is operated, the coordinate position (4, 2) is transferred and stored in the coordinate memory 22 as the reference position coordinate (x 0 , y 0 ) (steps S1, S).
2).

このようにして表の基準座標を入力したら、次に表計算
を行う為の式を入力する。すると、ステップS3ではカー
ソルキーKE、数字キーKA、ファンクションキーKDの操作
に伴って入力された式を計算手順メモリ20に書き込む式
入力処理が実行される。
After inputting the reference coordinates of the table in this manner, the formula for performing the table calculation is then input. Then, in step S3, a formula input process of writing the formula input in accordance with the operation of the cursor key KE, the numeric key KA, and the function key KD into the calculation procedure memory 20 is executed.

いま、文章メモリ14内の表項目に記入されている数値を
変数とする横計算式 A+2×B= A:表項目(1、1)内の数値 B:表項目(1、2)内の数値 を入力すると計算手順メモリ20の内容は第8図に示す如
くとなる。
Now, a horizontal calculation formula in which the numerical value entered in the table item in the text memory 14 is used as a variable A + 2 × B = A: Numerical value in table item (1, 1) B: Numerical value in table item (1, 2) When is input, the contents of the calculation procedure memory 20 become as shown in FIG.

ここで、表項目(1、1)内の数値Aは(10)、表項目
(1、2)内の数値Bは(40)であるが、計算手順メモ
リ20にはこれらの数値は入力されず、それらが記憶され
ている表項目内の座標が入力される。なお、この場合の
座標位置は数値の一部、例えば上位桁の対応座標が入力
される。
Here, the numerical value A in the table item (1, 1) is (10) and the numerical value B in the table item (1, 2) is (40), but these numerical values are input to the calculation procedure memory 20. Instead, the coordinates in the table item in which they are stored are input. The coordinate position in this case is a part of the numerical value, for example, the corresponding coordinate of the upper digit is input.

このようにして所望の式を入力し終ったら、実行キーKC
を操作する。すると、その式入力処理が終了し、次ステ
ップS4へ進行する。ここでは、横計算が行なわれること
によって得られた演算結果データを表のどの位置(文章
メモリ14のどの位置)に記憶させるかを指定する為にカ
ーソルキーKEを操作してその指定位置へカーソルを移動
させると、このときのカーソル座標が出力位置メモリ21
へ転送されて記憶される。また、このときのカーソル座
標は、座標メモリ22に演算結果の出力位置座標(A、
B)として転送される(ステップS5)。第8図はこのよ
うにして入力された座標データが出力位置メモリ21に記
憶された状態を示している。
After entering the desired formula in this way, press the execution key KC.
To operate. Then, the expression input process ends, and the process proceeds to the next step S4. Here, in order to specify at which position in the table (where in the text memory 14) the operation result data obtained by performing the horizontal calculation is to be operated, the cursor key KE is operated to move the cursor to the specified position. When is moved, the cursor coordinates at this time are changed to the output position memory 21.
To be stored in memory. In addition, the cursor coordinates at this time are output position coordinates (A,
B) is transferred (step S5). FIG. 8 shows a state in which the coordinate data thus input is stored in the output position memory 21.

しかして、次のステップS6では横計算を実行開始する為
に、先ず、計算手順メモリ20の先頭アドレス領域内のデ
ータが読み出される。ここで、第7図の例では、計算手
順メモリ20から座標データ(6、3)が読み出される。
しかして、ステップS7に進み、計算手順メモリ20から読
み出したデータに応じた演算処理が実行されたのち、ス
テップS6に戻り、計算手順メモリ20に設定されている式
の演算処理が全て終るまで上述の動作が繰り返される。
Then, in the next step S6, in order to start execution of the horizontal calculation, first, the data in the head address area of the calculation procedure memory 20 is read. Here, in the example of FIG. 7, the coordinate data (6, 3) is read from the calculation procedure memory 20.
Then, the process proceeds to step S7, and after the arithmetic processing according to the data read from the calculation procedure memory 20 is executed, the process returns to step S6, and the calculation processing of the formula set in the calculation procedure memory 20 is completed until all the above-mentioned operations are completed. The operation of is repeated.

第4図は、第3図で示した演算処理(ステップS7)の具
体的内容を示したフローチャートである。このフローに
入ると、計算手順メモリ20から読み出したデータに応じ
た演算処理に進むが、いま、第7図の例では計算手順メ
モリ20から座標データ(6、3)が読み出されるので、
ステップS7-1に進み、この座標データを座標メモリ22内
の座標(a、b)としてセットする。そして、カーソル
が座標(a、B)位置へ自動的に移動される(ステップ
S7-2)。この場合、X座標aは計算手順メモリ20から読
み出されたX座標(6)、Y座標Bは出力位置のY座標
(3)であるから座標(a、B)は(6、3)となり、
この場合においては、計算手順メモリ20から読み出され
た座標と同様となる。その後、カーソル座標(a、B)
を含む位置にある表項目内のデータが全て読み出されて
演算バッファ16の先頭位置から順次書き込まれる(ステ
ップS7-3)。ここで、該当表項目から全てのデータを読
み出す場合には、次の如くして行なわれる。例えば、第
2図に示すように文章メモリ14の表内において、カーソ
ル座標(6、3)を含む位置にある表項目内の数値変数
「10」を取り出す場合、カーソル座標(6、3)から左
方向の罫線コードがサーチされるまでテキストポインタ
15のX座標を「1」ずつ減算し、そして、罫線コードが
検索されると、今度はテキストポインタ15のX座標を
「1」ずつ加算してX座標を右方向へ移動させてゆきデ
ータの先頭を見つける。そして、データの先頭が捜し出
されると、その先頭から1桁ずつ右方向へ移動しながら
データを順次取り出してゆき、次の罫線コードが来るま
で右方向への移動を続行する。これによって1項目内に
記憶されているすべてのデータをその先頭から順番に取
り出すことができる。その結果、上述の式入力処理時に
おいて、表項目内のデータ記憶領域、つまりその先頭か
ら最後の位置まで指定しなくとも、そのデータ内の一部
を指定しておくだけで、表計算処理にその表項目内のデ
ータ全てを取り出すことができる。このようにして、文
章メモリ14から取り出された1表項目内の数値変数は、
演算バッファ16に転送される。
FIG. 4 is a flowchart showing the specific contents of the arithmetic processing (step S7) shown in FIG. When this flow is entered, the calculation process corresponding to the data read from the calculation procedure memory 20 is proceeded to. However, since the coordinate data (6, 3) is read from the calculation procedure memory 20 in the example of FIG.
In step S7-1, this coordinate data is set as the coordinate (a, b) in the coordinate memory 22. Then, the cursor is automatically moved to the coordinate (a, B) position (step
S7-2). In this case, since the X coordinate a is the X coordinate (6) read from the calculation procedure memory 20 and the Y coordinate B is the Y coordinate (3) of the output position, the coordinates (a, B) are (6, 3). ,
In this case, the coordinates are the same as the coordinates read from the calculation procedure memory 20. After that, cursor coordinates (a, B)
All the data in the table item at the position including is read and sequentially written from the head position of the operation buffer 16 (step S7-3). Here, when reading all the data from the corresponding table item, it is performed as follows. For example, in the table of the text memory 14 as shown in FIG. 2, when the numeric variable “10” in the table item at the position including the cursor coordinates (6, 3) is taken out, the cursor coordinates (6, 3) are used. Text pointer until the left ruled line code is searched
When the X coordinate of 15 is subtracted by "1" and the ruled line code is searched, this time, the X coordinate of the text pointer 15 is incremented by "1" and the X coordinate is moved to the right. Find the beginning. Then, when the head of the data is found, the data is sequentially taken out while moving one digit to the right from the head, and the rightward movement is continued until the next ruled line code comes. As a result, all the data stored in one item can be taken out in order from the beginning. As a result, in the above formula input processing, even if you do not specify the data storage area in the table item, that is, from the beginning to the end position, you only need to specify a part of the data All data in the table item can be retrieved. In this way, the numerical variables in one table item retrieved from the text memory 14 are
It is transferred to the calculation buffer 16.

そして、第3図のステップS6に戻り、出力位置メモリ21
から次アドレス領域内のデータが読み出されるが、第7
図の例ではファンクションコード「+」が読み出される
ので、第4図のフローにおいて、次にステップS7-4に進
み、計算手順メモリ20から読み出したファンクションコ
ードが演算バッファ16に取り込まれる。また、次に計算
手順メモリ20から数字コードが読み出されるが、この場
合も、ステップS7-4が実行され、数字コードがそのまま
演算バッファ16に取り込まれる。そして、次に計算手順
メモリ20からファンクションコード「×」が読み出され
て演算バッファ16に取り込まれる。
Then, returning to step S6 in FIG. 3, the output position memory 21
The data in the next address area is read from
Since the function code "+" is read in the example of the figure, the process proceeds to step S7-4 in the flow of FIG. 4, and the function code read from the calculation procedure memory 20 is loaded into the operation buffer 16. Further, next, the numerical code is read from the calculation procedure memory 20, and in this case also, step S7-4 is executed and the numerical code is taken into the operation buffer 16 as it is. Then, next, the function code “×” is read from the calculation procedure memory 20 and loaded into the operation buffer 16.

そして、次のタイミングでは計算手順メモリ20から座標
データ(10、3)が読み出され、ステップS7-1〜S7-3の
実行に移る。その結果、上述と同様に、文章メモリ14の
該当表項目から全ての数値変数「40」が読み出されて演
算バッファ16に取り込まれる。
Then, at the next timing, the coordinate data (10, 3) is read from the calculation procedure memory 20, and the process proceeds to steps S7-1 to S7-3. As a result, similarly to the above, all the numeric variables “40” are read out from the corresponding table items in the text memory 14 and loaded into the operation buffer 16.

最後に、計算手順メモリ20から「=」コードが読み出さ
れると、ステップS7-5に進み、演算バッファ16の内容に
基づいた演算が実行される。即ち、 10+2×40=90 の計算が行なわれる。そして、この演算結果は、座標メ
モリ22から座標(A、B)を読み出して文章メモリ14の
対応表項目内に書き込まれる。即ち、座標(A、B)
は、いまの場合(13、3)で、この座標を含む表項目
(1、3)内に、その座標位置から順に演算結果「90」
が書き込まれる。
Finally, when the “=” code is read from the calculation procedure memory 20, the process proceeds to step S7-5, and the calculation based on the contents of the calculation buffer 16 is executed. That is, the calculation of 10 + 2 × 40 = 90 is performed. Then, the calculation result is written in the correspondence table item of the text memory 14 by reading the coordinates (A, B) from the coordinate memory 22. That is, the coordinates (A, B)
In the present case (13, 3), in the table item (1, 3) containing this coordinate, the calculation result "90" is calculated in order from that coordinate position.
Is written.

このように「=」コードの検出に伴って計算手順メモリ
20に予め設定した式に応じた横計算が実行され、その答
が文章メモリ14の指定位置に書き込まれるが、その後、
計算手順メモリ20の次アドレス領域にはコードが記憶さ
れていないので、次に、第3図ステップS3に戻り、次の
行に対して横計算を行う為の式入力可能状態となる。
In this way, the calculation procedure memory is accompanied by the detection of the "=" code.
Lateral calculation according to the formula preset in 20 is executed, and the answer is written in the specified position of the text memory 14, but after that,
Since the code is not stored in the next address area of the calculation procedure memory 20, the process then returns to step S3 in FIG. 3 and the expression input state for performing the horizontal calculation for the next line is set.

いま、第2図に示す2行目の横計算を行う場合、その計
算式が、数値変数を除き第1行目のそれと変わりがない
ときには、その演算結果を出力する表の出力位置だけを
指定すると、第2行目の横計算についても第1行目の式
(第7図)が自動的に選択され、その結果(答)が指定
出力位置に書き込まれるようになる。
Now, when performing horizontal calculation on the second line shown in Fig. 2, if the calculation formula is the same as that on the first line except for numerical variables, specify only the output position of the table that outputs the calculation result. Then, also for the horizontal calculation on the second line, the formula (FIG. 7) on the first line is automatically selected, and the result (answer) is written in the designated output position.

即ち、第1行目の横計算式が表項目(1、1)+2×表
項目(1、2)→表項目(1、3)である場合におい
て、2行目以降も同様の式を用いた横計算を行うものと
すると、各行に対応してその答を出力させる表項目内の
座標位置を指定するだけで、第1行目で採用した式をそ
のまま使用して、即ち、計算手順メモリ20の内容を変更
せずにそのまま使用して第2行目以降の横計算も同様に
行うことができる。したがって、表項目(2、3)、
(3、3)、(5、3)内の座標を指定するだけで、 表項目(2、1)+2×表項目(2、2)→表項目
(2、3) 表項目(3、1)+2×表項目(3、2)→表項目
(3、3) 表項目(5、1)+2×表項目(5、2)→表項目
(5、3) の計算が実行される。
That is, when the horizontal calculation formula in the first line is table item (1,1) + 2 × table item (1,2) → table item (1,3), the same formula is used in the second and subsequent lines. If the horizontal calculation that was performed is to be performed, simply specify the coordinate position in the table item that outputs the answer corresponding to each line, and use the formula adopted in the first line as it is, that is, the calculation procedure memory. The contents of 20 can be used as they are without being changed, and the horizontal calculation from the second line onward can be similarly performed. Therefore, table items (2, 3),
Simply specify the coordinates in (3, 3), (5, 3), table item (2, 1) + 2 x table item (2, 2) → table item (2, 3) table item (3, 1) ) + 2 × table item (3,2) → table item (3,3) table item (5,1) + 2 × table item (5,2) → table item (5,3).

このように第1行目で採用した式をそのまま第2行目以
降にも連続的に使用することができるので、同一式の計
算が行方向に連続する横計算においては、式入力操作の
簡略化を図ることができると共に、メモリの節約ともな
り、有効であるまた、上述の例のように、第4行を飛ば
して第5行目を指定することもでき、指定データの連続
性には依存しない。
In this way, since the formula adopted in the first line can be continuously used as it is in the second and subsequent lines, in the horizontal calculation in which the same formula is continuously calculated in the row direction, the formula input operation can be simplified. This is effective because it can save the memory and save the memory. Moreover, as in the above example, the fourth line can be skipped and the fifth line can be specified. Do not depend.

一方、縦計算も横計算と略同様に実行されるので、その
説明を省略するが、縦計算については横計算に比べて単
に指定の方向が上下と左右との違いだけであり、また縦
計算についても横計算と同様に、四則演算子や定数を任
意に入力することにより、所望の式に基づいた計算を実
行させることができる。
On the other hand, the vertical calculation is executed almost in the same way as the horizontal calculation, so its explanation is omitted. However, the vertical calculation is different from the horizontal calculation in that the specified directions are only the difference between the vertical direction and the horizontal direction. Similarly to the horizontal calculation, the calculation can be executed based on a desired expression by arbitrarily inputting the four arithmetic operators and constants.

また、表集計は、表の横方向に配列されている数値を累
計したり、縦方向に配列されている数値を累計する横集
計あるいは縦集計さらには横集計の演算結果を累計する
集計処理等を実行する。
In addition, tabulation is a totaling process that accumulates the numbers arranged in the horizontal direction of the table, or accumulates the numbers arranged in the vertical direction, such as horizontal or vertical totaling, and totalizing the calculation results of horizontal totaling. To execute.

次に、第9図に示すように、文章メモリ14内に同一形式
の表が複数作成されている場合において、例えば最初の
表Aに対する表計算が終了した後、これに続いて表Bの
表計算を実行するときには、再計算キーKFを操作する。
すると、第5図のフローにしたがった動作が実行され
る。即ち、カーソルキーKEを操作してカーソルを表Bに
対する基準位置(図中左上端位置)にセットする(ステ
ップS11)。そして、実行キーKCを操作すると、その座
標位置が表Bの基準位置座標(α、β)として座標メモ
リ22に転送される(ステップS12)。そして、次のステ
ップS13では座標メモリ22にセットされている表Aの基
準位置座標(x0、y0)と表Bの基準位置座標(α、β)と
に基づいてその差分値を求め、これが基準位置の変更座
標量(Δα、Δβ)として座標メモリ22にセットされ
る。いま、例えば表Aの基準位置座標(x0、y0)が(4、
2)、表Bの基準位置座標(α、β)が(18、10)とす
ると、変更座標量(Δα、Δβ)は(14、8)となる。
Next, as shown in FIG. 9, in the case where a plurality of tables of the same format are created in the text memory 14, for example, after the table calculation for the first table A is completed, this is followed by the table of the table B. When performing calculation, the recalculation key KF is operated.
Then, the operation according to the flow of FIG. 5 is executed. That is, the cursor key KE is operated to set the cursor to the reference position (upper left end position in the figure) for the table B (step S11). Then, when the execution key KC is operated, the coordinate position is transferred to the coordinate memory 22 as the reference position coordinates (α, β) in Table B (step S12). Then, in the next step S13, the difference value is obtained based on the reference position coordinates (x 0 , y 0 ) of the table A and the reference position coordinates (α, β) of the table B set in the coordinate memory 22, This is set in the coordinate memory 22 as the changed coordinate amount (Δα, Δβ) of the reference position. Now, for example, the reference position coordinates (x 0 , y 0 ) in Table A are (4,
2) If the reference position coordinates (α, β) in Table B are (18, 10), the changed coordinate amounts (Δα, Δβ) are (14, 8).

このようにして表A、表Bとの基準位置座標の変更量
(Δα、Δβ)を求めたら、次のステップS14ではモー
ドレジスタMの内容に応じて現在のセットモードを判別
し、それに応じて横計算処理(ステップS15)、縦計算
処理(ステップS16)、表集計処理(ステップS17)が実
行される。
In this way, when the change amounts (Δα, Δβ) of the reference position coordinates between Table A and Table B are obtained, in the next step S14, the current set mode is determined according to the contents of the mode register M, and in accordance therewith. A horizontal calculation process (step S15), a vertical calculation process (step S16), and a tabulation process (step S17) are executed.

第6図はこの再計算時における横計算処理を説明する為
のフローチャートである。ここで、第6図は、第3図で
示したステップS6、S7に対応する横計算を実行するもの
で、先ずこのフローに入ると、計算手順メモリ20の最初
のアドレス領域からデータが読み出され(ステップS15-
1)、そのデータの種別に応じた処理が実行される。即
ち、計算手順メモリ20から座標データが読み出される
と、その座標データで指定される表項目から数値データ
を読み出して演算バッファ16に転送する処理が実行され
る(ステップS15-1〜S15-4)。この場合、ステップS15-
3において、計算手順メモリ20から読み出した座標デー
タ(a、b)を基準位置の変更座標量(Δα、Δβ)分
補正する処理が行なわれる点が事なり、他は第4図のス
テップS7-1〜S7-3と同様である。ここで、座標の補正処
理は、計算手順メモリ20から読み出した座標データ
(a、b)に、変更座標量(Δα、Δβ)を加算するこ
とによって行なわれる。いま、計算手順メモリ20からは
座標データ(6、3)が読み出され、また、表Aと表B
との基準位置座標との差が(14、8)であったので、補
正後の座標(a+Δα、b+Δβ)は(20、11)とな
る。
FIG. 6 is a flow chart for explaining the horizontal calculation processing at the time of this recalculation. Here, FIG. 6 executes the horizontal calculation corresponding to steps S6 and S7 shown in FIG. 3, and when this flow is first entered, data is read from the first address area of the calculation procedure memory 20. (Step S15-
1), processing according to the type of the data is executed. That is, when the coordinate data is read from the calculation procedure memory 20, the process of reading the numerical data from the table item designated by the coordinate data and transferring it to the calculation buffer 16 is executed (steps S15-1 to S15-4). . In this case, step S15-
3, the point that the process of correcting the coordinate data (a, b) read from the calculation procedure memory 20 by the amount of the changed coordinate (Δα, Δβ) of the reference position is performed, otherwise, step S7- in FIG. The same as 1 to S7-3. Here, the coordinate correction process is performed by adding the changed coordinate amount (Δα, Δβ) to the coordinate data (a, b) read from the calculation procedure memory 20. Now, the coordinate data (6, 3) is read from the calculation procedure memory 20, and the table A and the table B are also read.
Since the difference from the reference position coordinates of and is (14, 8), the corrected coordinates (a + Δα, b + Δβ) are (20, 11).

また、計算手順メモリ20からファクションコードあるい
は数字コードが読み出されると、演算バッファ16にその
まま転送されることは第4図の場合と同様である(ステ
ップS15-5)。
Further, when the function code or the numeric code is read from the calculation procedure memory 20, it is transferred to the operation buffer 16 as it is (step S15-5).

また、イコールコード(“=”)が計算手順メモリ20か
ら読み出された場合においても第4図の場合と同様であ
るが、この場合においても座標補正処理が行なわれる点
が異なる(ステップS15-6、S15-7)。即ち、演算結果を
書き込む為の出力位置(A、B)に変更座標量(Δα、
Δβ)が加算されることにより出力位置座標の補正が行
なわれる。そして、次のステップS15-8では、出力位置
メモリ21の次アドレス領域に出力位置データが記憶され
ているかの判断も行なわれる。ここで、第1行目の横計
算が終了した時点では、次の2行目の横計算に対する出
力位置データが出力位置メモリ21の次アドレス領域に記
憶されているので、ステップS15-1に戻り、2行目に対
しても同様の横計算処理が実行される。そして、ステッ
プS15-8で全行に対する横計算の終了が検出されると、
このフローから抜ける。
Also, when the equal code (“=”) is read from the calculation procedure memory 20, it is similar to the case of FIG. 4, but the difference is that the coordinate correction processing is also performed in this case (step S15- 6, S15-7). That is, at the output position (A, B) for writing the calculation result, the changed coordinate amount (Δα,
The correction of the output position coordinates is performed by adding Δβ). Then, in the next step S15-8, it is also determined whether or not the output position data is stored in the next address area of the output position memory 21. Here, since the output position data for the horizontal calculation of the next second line is stored in the next address area of the output position memory 21 when the horizontal calculation of the first line is completed, the process returns to step S15-1. The same horizontal calculation process is executed for the second line. Then, in step S15-8, when the end of the horizontal calculation for all rows is detected,
Get out of this flow.

なお、第6図は横計算の場合について説明したが、縦計
算処理、表集計処理に対しても上述と同様の座標補正処
理が行なわれる。
Although FIG. 6 has been described for the case of horizontal calculation, the same coordinate correction processing as described above is performed for vertical calculation processing and table aggregation processing.

このように、文章メモリ14内に同一形式の表が複数作成
されている場合において、最初の表に対する表計算が終
了した後、次の表に対する計算を実行する場合には再計
算キーKFを操作すると共に、この表の基準位置座標を指
定するだけで、計算手順メモリ20、出力位置メモリ21の
記憶内容を全く変更することなしにその計算式を使用し
てそのまま計算することができる。したがって、このよ
うな場合、極めて簡単な操作で同一形式の表計算を何度
でも繰り返し実行することが可能となる。
In this way, when multiple tables of the same format are created in the text memory 14, when the calculation for the first table is completed and the calculation for the next table is executed, operate the recalculation key KF. At the same time, only by designating the reference position coordinates in this table, the calculation contents can be used as they are without changing the stored contents of the calculation procedure memory 20 and the output position memory 21. Therefore, in such a case, it is possible to repeatedly execute the spreadsheet of the same format as many times as possible with an extremely simple operation.

[発明の効果] この発明によれば、表示画面上に表記された表につい
て、任意の表計算を任意のデータ位置を対象として実行
できると共に、極めて簡単な操作によって、再計算位置
を任意に指定し、同一形式の表計算を再度実行できる。
[Effects of the Invention] According to the present invention, it is possible to perform arbitrary table calculation on a table displayed on a display screen at any data position, and to specify a recalculation position arbitrarily by an extremely simple operation. Then, the same form of spreadsheet can be executed again.

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

第1図〜第9図はこの発明の一実施例を示し、第1図は
この発明が適用した日本語ワードプロセッサの基本的な
ブロック回路図、第2図は第1図で示した文章メモリ14
内に作成された表を示す図、第3図は横計算を行う場合
の動作を説明するフローチャート、第4図は第3図で示
した演算処理の具体的内容を説明する為のフローチャー
ト、第5図は再計算を行う場合の動作を説明する為のフ
ローチャート、第6図は第5図で示した再計算実行時に
おける横計算処理の具体的内容を説明する為のフローチ
ャート、第7図は計算手順メモリ20の記憶状態図、第8
図は出力位置メモリ21の記憶状態図、第9図は計算手順
メモリ20に同一形式の表が複数個作成されている場合
に、各表に対応して指定される基準位置座標を説明する
為の図である。 11……入力部、13……CPU、14……文章メモリ、16……
演算バッファ、17……演算部、20……計算手順メモリ、
22……座標メモリ。
1 to 9 show an embodiment of the present invention, FIG. 1 is a basic block circuit diagram of a Japanese word processor to which the present invention is applied, and FIG. 2 is a sentence memory 14 shown in FIG.
FIG. 3 is a diagram showing a table created in FIG. 3, FIG. 3 is a flow chart for explaining the operation when performing horizontal calculation, and FIG. 4 is a flow chart for explaining the specific contents of the arithmetic processing shown in FIG. FIG. 5 is a flow chart for explaining the operation when recalculation is performed, FIG. 6 is a flow chart for explaining the specific contents of the horizontal calculation processing at the time of executing the recalculation shown in FIG. 5, and FIG. Storage state diagram of calculation procedure memory 20, 8th
The figure is a storage state diagram of the output position memory 21, and FIG. 9 is for explaining the reference position coordinates designated corresponding to each table when a plurality of tables of the same format are created in the calculation procedure memory 20. FIG. 11 …… input section, 13 …… CPU, 14 …… text memory, 16 ……
Computation buffer, 17 ... Computation unit, 20 ... Calculation procedure memory,
22 ... Coordinate memory.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】表示画面上に表を表示する表示手段と、こ
の表示画面上に表示された表に対して、表計算を行なう
計算を任意に指定する計算指定手段と、 上記表示画面上に表示された表において、表計算の対象
とするデータ位置をカーソル位置によって任意に指定す
るデータ位置指定手段と、 このデータ位置を記憶するデータ位置記憶手段と、 上記データ位置に基づいて上記表のデータを読み出し、
このデータに基づいて上記計算指定手段で指定された計
算を実行する計算制御手段と、 上記表示画面上にカーソルを表示すると共に、表計算を
実行する再計算位置を上記カーソル位置によって任意に
指定する再計算位置指定手段と、 この再計算位置を記憶する再計算位置記憶手段と、 上記再計算位置に基づいて上記データ位置を変更し、こ
の変更されたデータ位置に基づいて上記再計算位置に対
応する表のデータを読み出し、このデータに基づいて、
上記計算制御手段で実行された計算と同一形式の表計算
を再度実行する再計算制御手段と を具備したことを特徴とするデータ処理装置。
Claim: What is claimed is: 1. Display means for displaying a table on a display screen, calculation specifying means for arbitrarily specifying a calculation for a table displayed on the display screen, and display means on the display screen. In the displayed table, data position specifying means for arbitrarily specifying the data position to be subjected to the table calculation by the cursor position, data position storing means for storing this data position, and data of the table based on the data position Read
A calculation control means for executing the calculation designated by the calculation designating means based on this data, a cursor is displayed on the display screen, and a recalculation position for executing the spreadsheet is arbitrarily designated by the cursor position. Recalculation position designating means, recalculation position storage means for storing the recalculation position, the data position is changed based on the recalculation position, and the recalculation position is supported based on the changed data position. Read the data in the table to
And a recalculation control means for re-executing a spreadsheet of the same format as the calculation executed by the calculation control means.
JP61230147A 1986-09-30 1986-09-30 Data processing device Expired - Lifetime JPH0750470B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61230147A JPH0750470B2 (en) 1986-09-30 1986-09-30 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61230147A JPH0750470B2 (en) 1986-09-30 1986-09-30 Data processing device

Publications (2)

Publication Number Publication Date
JPS6385959A JPS6385959A (en) 1988-04-16
JPH0750470B2 true JPH0750470B2 (en) 1995-05-31

Family

ID=16903323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61230147A Expired - Lifetime JPH0750470B2 (en) 1986-09-30 1986-09-30 Data processing device

Country Status (1)

Country Link
JP (1) JPH0750470B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2954363B2 (en) * 1990-12-27 1999-09-27 株式会社日立製作所 Document creation device and document creation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60238969A (en) * 1984-05-14 1985-11-27 Fujitsu Ltd Computation control system by card page change

Also Published As

Publication number Publication date
JPS6385959A (en) 1988-04-16

Similar Documents

Publication Publication Date Title
JPS60193066A (en) Electronic computer
JPH0750470B2 (en) Data processing device
JP2828301B2 (en) Control display processor for graphs and tables
JP3083665B2 (en) Sentence information processing equipment
JPH05210688A (en) Table calculation processing device
JPS6385960A (en) Text processor with table calculation function
JPH04436Y2 (en)
JP2994387B2 (en) Document input device
JPS6385961A (en) Text processor with table calculation function
JP2695082B2 (en) Electronic device with graph shadowing function
JP2645174B2 (en) Computer with field display function
JPH03116318A (en) Slip input device
JP3082940B2 (en) Character processing apparatus and method
JPH03209575A (en) Optimizing device for data display position
JP2019095870A (en) Electronic computer
JPH0682360B2 (en) Document creation device
JPH02160287A (en) Cursor display circuit
JPS61136119A (en) Controller for display position of cursor
JPH07110747A (en) Data display method
JPS6087390A (en) Character processor
JPH05233182A (en) Positioning method
JPH0517587B2 (en)
JPH02208720A (en) Inversion display method in handy terminal
JPS62229316A (en) Character processor
JPH04348418A (en) Field control system