JPS6336475A - Data processor - Google Patents
Data processorInfo
- Publication number
- JPS6336475A JPS6336475A JP61181701A JP18170186A JPS6336475A JP S6336475 A JPS6336475 A JP S6336475A JP 61181701 A JP61181701 A JP 61181701A JP 18170186 A JP18170186 A JP 18170186A JP S6336475 A JPS6336475 A JP S6336475A
- Authority
- JP
- Japan
- Prior art keywords
- data
- matrix
- key
- input
- column
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000011159 matrix material Substances 0.000 claims abstract description 47
- 238000000034 method Methods 0.000 description 89
- 230000006870 function Effects 0.000 description 47
- 239000000872 buffer Substances 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 235000011511 Diospyros Nutrition 0.000 description 1
- 244000236655 Diospyros kaki Species 0.000 description 1
- 241000237502 Ostreidae Species 0.000 description 1
- 240000000220 Panda oleosa Species 0.000 description 1
- 235000016496 Panda oleosa Nutrition 0.000 description 1
- 244000117054 Rungia klossii Species 0.000 description 1
- 235000002492 Rungia klossii Nutrition 0.000 description 1
- 241000862969 Stella Species 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 235000009508 confectionery Nutrition 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 235000020636 oyster Nutrition 0.000 description 1
Landscapes
- Calculators And Similar Devices (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、行列状のデータ群を処理することができるデ
ータ処理装置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a data processing device capable of processing a data group in matrix form.
従来技術
従来、2次元の行列状の配列態様を有するデータ群を処
理する、いわゆるポケットコンビ二一夕が用いられてい
る。このようなポケットコンピュータにおいて、前記行
列状のデータ群に関して転置行列に対応する配列態様を
有するデータ群を得ようとする場合、典型的には以下の
ような技術が用いられていた。BACKGROUND ART Conventionally, a so-called pocket computer has been used to process a data group having a two-dimensional matrix arrangement. In such a pocket computer, when attempting to obtain a data group having an arrangement pattern corresponding to a transposed matrix with respect to the matrix-like data group, the following technique is typically used.
第1の従来技術では、前記行列状 (以下、mIT″n
列の行列を想定して説明する)のデータ群を記憶する第
1記憶素子に対して、少なくとも同一記憶容量を有する
第2記憶素子を準備する。第1記憶素子に記憶されたデ
ータ行列の内、第i?〒第j列目のデータaiJ(’!
= 1.2 +・・・、m、J: 1.21・・・+
n)を、第2記憶素子のPJj行第1列目の配置位置に
格納する。このようにして、第1記憶素子に記憶された
データ行列の転置行列に対応する配列態様を有するデー
タ行列を、前記第2記憶素子に得ることができる。In the first prior art, the matrix (hereinafter mIT″n
A second storage element having at least the same storage capacity as a first storage element that stores a data group (described assuming a matrix of columns) is prepared. Of the data matrix stored in the first storage element, the i-th? 〒Jth column data aiJ('!
= 1.2 +..., m, J: 1.21...+
n) is stored in the arrangement position of row PJj and first column of the second storage element. In this way, a data matrix having an arrangement pattern corresponding to the transposed matrix of the data matrix stored in the first storage element can be obtained in the second storage element.
fiIJ2の従来技術では、イ〒列状のデータ群を処理
するプログラムに関して、前記データ群の行方向列およ
び列方向列を処理する全てのステップに、行と列とを入
替える処理を挿入する。In the prior art of fiIJ2, regarding a program that processes a data group in an array, a process for exchanging rows and columns is inserted in all steps that process columns in the row direction and columns in the data group.
このような従来技術によって、イテ列状のデータ群に関
して、その転置行列の配列態様のデータ群を得ることが
できる。With such a conventional technique, it is possible to obtain a data group in the arrangement form of a transposed matrix for a data group in the form of an iterated column.
発明が解決しようとする問題点
上述したような@1の従来技術では、このような処理を
行なう前記ポケットコンビエータに装備すべき記憶素子
の記憶容量がむやみに増大してしまい、構成が複雑にな
りでしまう。また、第2の先行技術では、ポケットコン
ピュータの・動作を制御するプログラムがむやみに複雑
となってしまうなどの問題点があった。Problems to be Solved by the Invention In the prior art @1 as described above, the storage capacity of the storage element to be installed in the pocket combinator that performs such processing increases unnecessarily, and the configuration becomes complicated. It becomes what it is. Furthermore, the second prior art has problems such as the program for controlling the operation of the pocket computer becoming unnecessarily complicated.
本発明の目的は、上述の問題点を解決し、簡便なりIt
戊によって行列状のデータ群に関して、その転置行列に
対応する配列!!!様をデータ群を発生することができ
るデータ処理装置を提供することである。The purpose of the present invention is to solve the above-mentioned problems and to provide a simple and
For a matrix-like data group, the array corresponding to its transposed matrix! ! ! An object of the present invention is to provide a data processing device capable of generating a data group in a similar manner.
問題点を解決するための手段
本発明は、行列状の配列態様を有するデータ群を記憶す
る記憶手段と、
前記データ行゛列を表示する表示手段と、レノスタとを
含み、
レノスタを用いて、前記データ行列に関し、転置行列の
配列態様を有するデータ行列を発生させるようにしたこ
とを特徴とするデータ処理装置である。Means for Solving the Problems The present invention includes a storage means for storing a data group having a matrix arrangement, a display means for displaying the data rows and columns, and a renostar, and using the renostar, Regarding the data matrix, the data processing apparatus is characterized in that a data matrix having an arrangement form of a transposed matrix is generated.
作 用
本発明に基づくデータ処理装置は、行列状の配列態様を
有するデータ群を記憶する記憶手段を含む。記憶手段に
記憶されたデータ行列の任意の一配列位置のデータは、
レノスタに記憶され一方、当該データの配列位置に対し
て、この行列の転置行列において対応する配に位置を演
算する。演算結果の配列位置に、前記レノスタからのデ
ータを転送する。このような処理を繰返すことによって
、前記データ行列から、その転置行列に対応する配列態
様を有するデータ列を得ることができる。Operation The data processing device based on the present invention includes a storage means for storing a data group having a matrix arrangement. The data at any one array position of the data matrix stored in the storage means is
For the array position of the data stored in the renostar, the position is calculated in the corresponding array in the transposed matrix of this matrix. The data from the renostar is transferred to the array position of the calculation result. By repeating such processing, a data string having an arrangement pattern corresponding to the transposed matrix can be obtained from the data matrix.
実施例
第1図は本発明の一実施例のデータ処理装置である、い
わゆるポケットコンピュータ (以下、計算機と略称す
る)1の正面図であり、第2図は計算機1の電気的構成
を示すブロック図である。第1図および第2図を参照し
て、計算8!1の構成について説明する。計算機1の前
面板2の一隅には、表示手段であり、たとえば液晶表示
素子(L CD )などによって実現される表示部4が
設けられる。Embodiment FIG. 1 is a front view of a so-called pocket computer (hereinafter referred to as a computer) 1, which is a data processing device according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the electrical configuration of the computer 1. It is a diagram. The configuration of calculation 8!1 will be explained with reference to FIGS. 1 and 2. At one corner of the front panel 2 of the computer 1, there is provided a display section 4 which is a display means and is realized by, for example, a liquid crystal display element (LCD).
表示部4は、たとえばマトリックス駆動形であって、た
とえば24桁の1行分の表示容量を有している。The display section 4 is, for example, of a matrix drive type, and has a display capacity for one line of, for example, 24 digits.
上記表示部4の近傍には、後述するような表の作成時に
おいて項目名などの文字を入力する際に■いられ、また
いわゆる関数キーを兼ねる文字入カキ−#5と、いわゆ
るテンキーである数値入力キ一群6と、演抹子(たとえ
ば「÷」や「+jなど)指示キ一群7と、カーソルキ一
群8などが配置される。また表機能キー9は、後述する
ような表データの作成機能を実現し、行指示キー10は
、後述するような2次元表データの作成時において、当
該データ行列の入力すべき各行を選択する機能を有する
。、また列指示キー11は、同様にデータ行列の入力す
べき列を指示する機能を有する。また入替キー12は、
後述するように作成された表データに関して、当該デー
タ行列の転置行列に対応する配列態様のデータ行列を発
生させる機能を有する。Near the display section 4, there is a character input key #5, which is used when entering characters such as item names when creating a table as described later, and also serves as a so-called function key, and a so-called numeric keypad. A group of numerical input keys 6, a group of operator keys (for example, "÷" or "+j, etc.) instruction keys 7, a group of cursor keys 8, etc. are arranged. Table function keys 9 are used to create table data as described later. The row direction key 10 has the function of selecting each row to be input in the data matrix when creating two-dimensional table data as described later. It has the function of instructing the column to be input in the matrix.Also, the exchange key 12 is
Regarding tabular data created as described below, it has a function of generating a data matrix in an arrangement format corresponding to a transposed matrix of the data matrix.
計11は、計算機1の各種データ処理を制御する中央処
理装置(以下、CPUと略称する)13を備える。CP
U13には、キー人カバッ7747を介して前述の文字
人力キ一群5などを含むキー人力部14が接続され、ま
た表示制御部15を介して前記表示部4が接続される。The total 11 includes a central processing unit (hereinafter abbreviated as CPU) 13 that controls various data processing of the computer 1 . C.P.
A key manual section 14 including the aforementioned character manual key group 5 is connected to U13 via a key cover 7747, and the display section 4 is connected via a display control section 15.
表示制御部15には、表示バッフ716が設けられてお
り、表示部4に表示すべきデータを一時的に記憶する。The display control unit 15 is provided with a display buffer 716, which temporarily stores data to be displayed on the display unit 4.
またCPU13には、たとえばROM (リードオン
リメモリ)などによって構成される固定記憶部17と、
たとえばRAM(ランダムアクセスメモリ)などによっ
て構成される記憶部18とが接続される。固定記憶部1
7および記m部18が、記憶手段を構成する。The CPU 13 also includes a fixed storage section 17 configured by, for example, ROM (read only memory).
For example, a storage unit 18 constituted by a RAM (random access memory) or the like is connected. Fixed storage unit 1
7 and the recording section 18 constitute a storage means.
固定記憶部17は、計算機1が起動されたときに初期設
定処理を制御するイニシャルプロクラムを記憶するイニ
シャルプログラム領域19と、計算機1において用いら
れるたとえばBASICなどの高級言語に関するインタ
プリタプロゲラA l、r記憶されるインタプリタ頭載
20と、後述するような表処理を行なうプログラムが記
憶された表処理プログラム領域21と、キー人力部14
のキー繰作に伴ってCPU13に入力されるキャラクタ
コードデータから、当該コードに対応する表示キャラク
タのドツトパターンを発生するプログラム (以下、C
GCプログラム略称する)が、記憶されるCGプログラ
ム領域22と、その他各種のシステムプログラムが記憶
されるシステムプログラム頭載23とを含む。The fixed storage unit 17 includes an initial program area 19 that stores an initial program that controls initial setting processing when the computer 1 is started, and an interpreter programmer A l, r used in the computer 1 for high-level languages such as BASIC. A stored interpreter header 20, a table processing program area 21 in which a program for performing table processing as will be described later is stored, and a key human power section 14.
A program (hereinafter referred to as C
The GC program (abbreviated as GC program) includes a CG program area 22 where it is stored, and a system program header 23 where various other system programs are stored.
また記憶部18には、計算8!f1の操作者が任意に作
成したBAS I Cプログラムや、各種データなどを
記憶するユーザプログラム領域24と、後述する表デー
タを記憶rる表データ領域25と、各種のバッファ、カ
ウンタまたはレジスタなどが割付けられるシステム領域
26とを含む。システム領域26には、複数の表を識別
する表題目に対応するパラメータである11カウンタ2
7 と、各段の列方向位置すなわち、各灯を識別するパ
ラメータである如カウンタ31 と、各列を識別するパ
ラメータであるnカウンタ29 とを含む。さらに表の
各データごとに設定される行/列の入替完了フラグの集
合であるFレジスタ30と、この行/列の入替処理に泪
いられるXレジスタ31と、C2111N、A、BL/
ノスタ 33,34.35.36.37とがそれぞれ設
定される。In addition, the storage unit 18 stores calculation 8! A user program area 24 for storing BASIC programs and various data arbitrarily created by the f1 operator, a table data area 25 for storing table data to be described later, and various buffers, counters, registers, etc. and the allocated system area 26. The system area 26 contains 11 counters 2, which are parameters corresponding to titles for identifying multiple tables.
7, a counter 31 which is a parameter for identifying the column direction position of each stage, that is, each lamp, and an n counter 29 which is a parameter for identifying each column. Furthermore, there is an F register 30, which is a set of row/column swapping completion flags set for each data in the table, an X register 31, which is used for this row/column swapping process,
Nosta 33, 34, 35, 36, and 37 are set, respectively.
第3図は表データ領域20の各種データの割付態様を示
す図である。表データ領域25は、ユーザプログラム領
域24の一部分に割付けられ、その各データは、後述の
入力処理ごとに、またはBASICプログラムの変数デ
ータの割付は命令などによって記憶され、表データが作
成される。第3図に示す表データ領域25のデータ例は
、下記の第1表に対応し、表データの各項目は、たとえ
ば16バイトの固定長で形成される。FIG. 3 is a diagram showing how various types of data are allocated in the table data area 20. The table data area 25 is allocated to a part of the user program area 24, and each piece of data is stored for each input process described below or by an instruction for assigning variable data in a BASIC program, and table data is created. The data example of the table data area 25 shown in FIG. 3 corresponds to the following table 1, and each item of the table data is formed with a fixed length of, for example, 16 bytes.
(以下余白)
第 1 表
表データ領域25の最先頭アドレス側からは、表の表題
と各段の列項目名とが割付けられるストリング関数TI
+$(C)と、列順目数(実際には列順目数+1)の数
値とが定義されて割付けられる定義領域38が設定され
る。以下、Cレジスタ33のカウント値Cをパラメータ
に、第1表に示す列項目名が、
TO$(0)=“スウ〃り” ・・・(1)
のように記憶される列項目名領域39a〜39eが設定
される。(Left below is blank space) From the first address side of the first table data area 25, a string function TI is used to assign the table title and the column item name of each row.
A definition area 38 is set in which +$(C) and a numerical value of the column order number (actually, the column order number +1) are defined and allocated. Hereinafter, using the count value C of the C register 33 as a parameter, the column item names shown in Table 1 are as follows: TO$(0) = "Sweet" ... (1)
Column item name areas 39a to 39e stored as follows are set.
引続き定義1域40が設定され、第1表の “アオキ”
などの行項目名データが割付けられるストリング関数D
b$(L)が格納される。以下、カウント値りをパラメ
ータとして行項目名領域41a。Definition 1 area 40 continues to be set, and “Aoki” in Table 1
String function D to which line item name data such as
b$(L) is stored. Hereinafter, the line item name area 41a will be displayed using the count value as a parameter.
41b、41c、・・・が設定され、それぞれたとえば
D OS (0)=“アオキ” ・・・(
2)のように行項目名が記憶される。41b, 41c, . . . are set, and for example, D OS (0) = “Aoki” . . . (
The line item names are stored as shown in 2).
引続き第1表の場合の点数に相当する入力データが割付
けられる数値関数DI+(+杓1])が定義される定義
領域42が設定され、引続きデータ頭載43a、43b
+・・・が設定され、入力された・各データがたとえば
、
Do(0,0)=30 ・・・(3)
のように記mされる。これらのデータは入力処理ごとに
自動的に表データ領域25に割付けられ、またBASI
C言語の変数命令によっても割付けられる。またこれら
の各データを読出すためのアクセスは、前記定a頭載3
8.40.42などに変数名とともに、格納されている
項目数によって、データ位置のアドレス値が演算される
。Subsequently, a definition area 42 is set in which a numerical function DI+(+1]) to which input data corresponding to the points in the case of Table 1 is assigned is defined, and data headers 43a and 43b are subsequently set.
+... is set and each input data is, for example, Do(0,0)=30...(3)
It is written like this. These data are automatically allocated to the table data area 25 for each input process, and are
It can also be allocated by a C language variable command. In addition, access to read each of these data is as follows:
The address value of the data position is calculated based on the number of items stored together with the variable name in 8.40.42, etc.
表データ領域25の領域44に示すデータは、定aa域
42において定義されるデータ行列の最大列方向長さL
Oと、最大行方向長さCoとによって想定される領域に
、計11の操作による入力が行なわれていない場合に割
付けられるデータであり、表データ領域25の当該領域
にこのデータがすべて格納される。また領域45に示す
データは、データの不存在を示すデータであり、m1図
に示す欠測性キー46を原作した際に格納される。The data shown in the area 44 of the table data area 25 has the maximum length L in the column direction of the data matrix defined in the constant aa area 42.
This is data that is allocated when no input is performed by a total of 11 operations in the area assumed by O and the maximum row direction length Co, and all of this data is stored in the corresponding area of the table data area 25. Ru. Further, the data shown in the area 45 is data indicating the absence of data, and is stored when the missingness key 46 shown in figure m1 is created.
これらの数値データは、計11において用い得る最小値
/最大値の数値データであり、このような数値データを
前記データの未入力/不存在を示すrこめに用いるのは
以下の理由による。すなわち、計算機1は、BASIC
言語などに基づく特殊コードを前記目的のために用いる
こともできるけれども、計算を凌1はB A S I
C言語などのプログラム処理を可能にしており、そのた
め種々のコード系を利用する。したがってこのようなコ
ード系に可及的に♂11約を与えないようにするためで
ある。またデータ処理において、計算機1のデータ処理
能力の最大値/i小値が発生することは殆どないことも
挙げられる。These numerical data are minimum/maximum value numerical data that can be used in total 11, and the reason why such numerical data is used to indicate non-input/absence of the data is as follows. That is, the computer 1 uses BASIC
Although special codes based on languages etc. can be used for the above purpose, the calculations are beyond the BAS I
It enables program processing in languages such as C language, and therefore uses various code systems. Therefore, the purpose is to avoid giving the ♂11 reduction to such a code system as much as possible. Furthermore, in data processing, the maximum value/i small value of the data processing capacity of the computer 1 almost never occurs.
第4図は第1図示の計算機1の表の題名の入力および列
項目名の入力の手順を説明する70〜チヤートである。FIG. 4 is a chart from 70 to 70 for explaining the procedure for inputting the table title and column item name in the calculator 1 shown in the first figure.
第1図〜第4図を参照して、本実施例の動作について説
明する。第4図ステップa1で、計算機1の表機能キー
9を繰作する。この操作によってステップa2 で、
入力される複数の表にそれぞれ付される番号を記憶する
hレノスタ27のカウント値]1を、たとえばrOJ
に初期化する。The operation of this embodiment will be described with reference to FIGS. 1 to 4. At step a1 in FIG. 4, the table function key 9 of the computer 1 is operated. With this operation, in step a2,
Store the numbers assigned to each of the input tables.H Renostar 27 count value] 1, for example rOJ
Initialize to .
ステップa3 では、CPU13は、“表タイトル”
、’h+1;“=?”
のデータを、表示制御部15の表示バッフ716に記憶
し、表示部4に表示させる。In step a3, the CPU 13 selects the “table title”
, 'h+1;"=?" is stored in the display buffer 716 of the display control section 15 and displayed on the display section 4.
ステップa4 では、計算機1のキー人力部14から
のキー人力を読込み、ステップa5 では、繰作され
たキーがフル7アベツトや、カナなどを入力する文字入
カキ一群5であるかどうかの判断を行ない、否定であれ
ばステップa6 に移る。ステップa5の判断が肯定
であれば、ステップa7に移り、前記キー人力されたキ
ャラクタコードがキー人力バラ7T47に取込まれ、さ
らにCGプログラム頭域22を用いて、当該コードをキ
ャラクタパターンに展開し、ステップa8 で表示制
御部15に与え、表示部4に表示する。この後、再びス
テップa4 に処理は戻り、前述したステップa4〜
a8を1サイクルとする処理を繰返し行なう、このよう
にして、以降の処理で作成しようとする表の題名「セイ
セキヒタウ」が、キー人力バッ7ア47に格納され表示
部4に表示される。In step a4, the key input from the key input unit 14 of the calculator 1 is read, and in step a5, it is determined whether the pressed key is a character entry group 5 for inputting full 7 Abets, kana, etc. If the answer is negative, proceed to step a6. If the judgment in step a5 is affirmative, the process moves to step a7, where the key manually inputted character code is taken into the key manually inputted bar 7T47, and the code is developed into a character pattern using the CG program head area 22. , is given to the display control unit 15 in step a8, and displayed on the display unit 4. After this, the process returns to step a4 again, and steps a4 to
The process with a8 as one cycle is repeated, and in this way, the title of the table to be created in the subsequent process, "Seiseki Hitau", is stored in the key manual buffer 47 and displayed on the display section 4.
前記入テンプa5 で1!す断結果が否定であるとき
、ステップa6 に移り、操作されたキーが列指示キ
ー11であるかどうかの判断を行なう。1!IIFIR
結果が否定であれば、処理はステップa9 に移り、
肯定であればステップaloに移る。ステップal。1 with the above entry template A5! If the result is negative, the process moves to step a6, and it is determined whether the operated key is the column designation key 11 or not. 1! IIFIR
If the result is negative, the process moves to step a9;
If affirmative, move to step alo. Step al.
では、前記ステップa7 においてデータが格納され
たキー人力バノ7ア47の記憶内容を、前記ストリング
関数Tb$(C)(実際には、h=o、C=O)に割付
は格納させる。このステップalo 以降の処理は、
列項目名の入力に移る。Now, the memory contents of the keypad 7a 47, where the data was stored in step a7, are stored in the string function Tb$(C) (actually, h=o, C=O). The processing after this step alo is
Move on to input column item names.
前記入テンプa6 における判断が否定であれば、ス
テップa9 に移り、操作されたキーが表機能キー9
であるかどうかの判断を行なう。判断結果が否定であれ
ば処理はステップa3 に戻り、前述したような処理
を行なう。ステップa9 における判断が肯定であれば
、処理はステップall に移り、カウント値11が
たとえば9であるかどうかの判断が行なわれる。すなわ
ち、本実施例の計算機1では、たとえば9個の表を作成
できる機能を有する。If the judgment in the entry template a6 is negative, the process moves to step a9, and the operated key is the front function key 9.
Make a judgment as to whether or not. If the determination result is negative, the process returns to step a3, and the process described above is performed. If the determination in step a9 is affirmative, the process moves to step all, where it is determined whether the count value 11 is, for example, 9. That is, the computer 1 of this embodiment has a function of creating, for example, nine tables.
この表の個数は、勿論9個以上であってもよいし、以下
であってもよい。Of course, the number of items in this table may be greater than or equal to nine, or may be less than nine.
ステップall における判断が否定であれば、71
−算8!1はさらに表を作成できることになり、ステッ
プa12 でカウント値1】を+1インクリメントし
、処理をステップa3に戻す。ステップal lにおけ
る判断結果が1デ定であれば、これ以上の表の作成は不
可能であり、ステップa13 でカウント値11を「
0」に初期化し、表示部4に第1番目の表の題名を表示
させ、処理はステップa3 に戻る。If the judgment in step all is negative, 71
- Arithmetic 8!1 allows further creation of a table, and in step a12 the count value 1] is incremented by +1, and the process returns to step a3. If the judgment result in step al l is 1, it is impossible to create any more tables, and in step a13 the count value 11 is
0'', the title of the first table is displayed on the display section 4, and the process returns to step a3.
前記ステップalo に引続く処理は、列項目名の入
力であり、ステップa14 で列順目番号を表わすC
レノスタ33のカウント値Cを、たとえば「0」に初期
化する。ステップa15 では、上記ステップa3
と類似の7オーマツトで、列項目名を問う表示を表示
部4に表示させる。ステップa16では、計算8!1の
キー人力部14からのキー人力を読込む。ステップa1
7 では、文字入カキ一群5が操作されたかどうかの
判断を行ない、否定であればステップa18 に移り
、肯定であればステップa19.a20に移り、前記ス
テップa7.a8と同様に、入力されたキャラクタフー
ドをキー人力バッ7ア47に記憶した後、表示部4に表
示する。これ以降の処理はステップalG に移る。The process subsequent to step alo is to input column item names, and in step a14, input C representing the column order number.
The count value C of the reno star 33 is initialized to, for example, "0". In step a15, the above step a3
A display asking for the column item name is displayed on the display unit 4 in a 7-ormat similar to the above. In step a16, the key manpower from the key manpower section 14 of Calculation 8!1 is read. step a1
7, it is determined whether or not the character-filled oyster group 5 has been operated. If negative, the process moves to step a18, and if positive, step a19. Moving on to a20, the steps a7. Similarly to a8, the input character food is stored in the key input buffer 47 and then displayed on the display section 4. The subsequent processing moves to step alG.
ステップa17で判断が否定のとき、ステップa18で
列指示キー11が操作されたかどうかの判断を行ない、
否定であればステップa16 に戻り、前述の処理を
繰返し行なう。肯定であれば、ステップa20 に移
り、キー人力バッ7ア47の記憶内容が空白であるかど
うかの判断を行なう8判断結果が否定であれば、処理は
ステップa22 に移り、ストリング関数Th$(C
+1)に、ストリング関数Th$(C)の割付内容を割
付ける。その後、ステップa23 では現在のキー人
力バッ7ア47の記憶内容を、ストリング関数Tl+$
(C)に割付は記憶させる。この後、ステップa24
でカウント値Cは+1インクリメントされ、処理は再
びステップa15 に戻る。When the determination in step a17 is negative, it is determined in step a18 whether or not the column instruction key 11 has been operated;
If negative, the process returns to step a16 and the above-described process is repeated. If affirmative, the process moves to step a20, where it is determined whether the memory content of the key manual buffer 47 is blank.8If the judgment result is negative, the process moves to step a22, where the string function Th$( C
+1) is assigned the assignment contents of the string function Th$(C). Thereafter, in step a23, the current memory contents of the key manual buffer 47 are converted to the string function Tl+$
The allocation is memorized in (C). After this, step a24
Then, the count value C is incremented by +1, and the process returns to step a15 again.
前記ステップa22〜a24の処理を要約すれば、列項
目名の入力を行なうたびごとに、それまで前記ストリン
グ関数ごとに記憶されている表の題名は、順次アドレス
の増加する方に隣接するストリング関数に順送りに転送
され、C=0に相当するストリング関数TI+$(0)
に、最新の列項目名が割当てられる。To summarize the processing in steps a22 to a24, each time a column item name is input, the table title stored for each string function is sequentially changed to the adjacent string function whose address increases. The string function TI+$(0) corresponding to C=0 is sequentially transferred to
is assigned the latest column item name.
前記ステップa21 の判断が肯定であれば、文字人
力キ一群5を操作することなしに、列指示キー11を操
作したことになり、すなわち列項目名の入力が当ま表に
おいては終了したことを示し、この後、処理は第5図に
示す行項目名人力を行なう、処理に移る。If the judgment in step a21 is affirmative, it means that the column direction key 11 was operated without operating the character key group 5, that is, the input of the column item name has been completed in the table. After this, the process moves to the process of performing the line item name input shown in FIG.
第5図は第4図の70−チャートの処理に引続き行なわ
れる行項目名人力の処理を説明する70−チャートであ
る。第1図〜第5図を参照して、行項目名人力の手順に
ついて説明する。第5図ステップb1 では、行項目
名に付される番号を表すCカウンタ33のカウント値り
がたとえば「0」に初期化され、ステップ1】2では、
“ギaウコウモク”;L;“=?”
のデータが表示部4に表示される。FIG. 5 is a 70-chart illustrating the row item name manual processing that is performed subsequent to the processing of the 70-chart in FIG. Referring to FIGS. 1 to 5, the procedure for inputting line item names will be described. In step b1 of FIG. 5, the count value of the C counter 33 representing the number attached to the line item name is initialized to, for example, "0", and in step 1]2, "Gyaukou Moku";L;"= ?” data is displayed on the display section 4.
引続くステップb3 では、キー人力部14がらのキ
ー人力が読取られ、ステップb4.b5では文字入カキ
一群5が操作されたか、または行指示キー10が操作さ
れたかの判断をそれぞれ行なう。In the subsequent step b3, the key power from the key power section 14 is read, and step b4. At b5, it is determined whether the character entry key group 5 or the line direction key 10 has been operated.
共に操作されていなければ、ステップb3 に戻って
再びキー人力の読取り動作を行なう。ステップ1)4で
判断結果が肯定であれば、ステップb6.b7に順次移
り、第4図示のステップa7.a8で説明した手順と同
一の手順で、取込まれたキャラクタコードに対応するキ
ャラクタが表示部4に表示される。If both keys have not been operated, the process returns to step b3 and the manual key reading operation is performed again. If the judgment result in step 1)4 is affirmative, step b6. Sequentially move to step b7, and step a7. shown in the fourth diagram. A character corresponding to the captured character code is displayed on the display section 4 in the same procedure as described in a8.
ステップb4 の判断が否定であれば、ステップb5
に移つ、ステップb5の判断がけ定であれば、入力すべ
き表の一行項目名の入力は終了して次行のイテ項目名の
入力を要求していることになる。このとき処理はステッ
プb8 に移り、キー人力バッ7ア47の記憶内容が
空白であるかどうかの判断を行なう。判断が肯定であれ
ば、行項目名の入力は終了しており、後述するfifJ
6図に示す表データの入力処理に移る。ステップ1〕8
の判断が否定であれば、処理はステップ1】9
に移り、現在キー人力バッ7ア47の記憶内容をストリ
ング関数 D I+$(L)に記憶し、続くステップ1
コ10 でカウント値りを+1インクリメントする。If the judgment in step b4 is negative, step b5
If the judgment in step b5 is positive, the input of the item name in one line of the table to be input has been completed and the input of the item name in the next line is requested. At this time, the process moves to step b8, and it is determined whether the memory contents of the key manual buffer 47 are blank. If the judgment is affirmative, the input of the line item name has been completed, and fifJ, which will be described later,
The process moves on to input processing of table data shown in FIG. Step 1〕8
If the judgment is negative, the process proceeds to step 1】9
, the current memory contents of the key buffer 47 are stored in the string function DI+$(L), and the following step 1
Increment the count value by +1 with ko10.
続いて処理はステップh 2 に戻り、新たな行項目
の入力を行なうかどうかの表示を表示部4に表示する。Subsequently, the process returns to step h 2 and displays on the display section 4 an indication as to whether or not to input a new line item.
ここで所望の行項目名の入力が終了していれば、再び行
指定キー10を操作し、このとき処理はステップb4.
b5を経でステップb8に移り、キー人カバy7y47
の記憶内容が空白であること、が判断される。第6図を
参照して後述する表データ入力の処理モードに移る。If the input of the desired line item name has been completed, the line designation key 10 is operated again, and the process proceeds to step b4.
Move to step b8 via b5, key person cover y7y47
It is determined that the memory content of is blank. The process moves to a tabular data input processing mode, which will be described later with reference to FIG.
第6図は上記第1表に示す題名 「セイセキヒタウ」の
頁数である数値データを入力する手順を説明する70−
チャートである。第1図〜第6図を参照して、データ入
力手順について説明する。第6図ステップd1 で、
入力されるデータの列方向位置と行方向位置とを示す噛
カウンタ28およびnカウンタ29のカウント値m、
nおよび、表番号を示すI】レノスタのカフント値11
をたとえば「0」にそれぞれ初期化する。ステップd2
では、第3図の定義領域42において定義される数
値関数Dh(m。Figure 6 shows the procedure for inputting numerical data, which is the number of pages of the title "Seiseki Hitau" shown in Table 1 above.
It is a chart. The data input procedure will be explained with reference to FIGS. 1 to 6. In step d1 of Fig. 6,
Count values m of the bite counter 28 and n counter 29 indicating the column direction position and row direction position of input data,
n and I indicating the table number] Renosta's Kafunto value 11
For example, each is initialized to "0". step d2
Now, the numerical function Dh(m) defined in the definition area 42 of FIG.
n)(実際、にはI+=m=n=O)の第3図に示すデ
ータ領域43を行方向最大値COおよび列方向最大値L
OについてLOXCOだけ確保し、領域44に示すデー
タ未入力状態を表す数値データを格納する。n) (actually, I+=m=n=O), the data area 43 shown in FIG. 3 is set to the row direction maximum value CO and column direction maximum value L.
Only LOXCO is secured for O, and numerical data representing a data-uninput state shown in area 44 is stored.
次にステップd3 では、分述した列項目名および行
項目名をそれぞれ表すストリング関数Th$(C)、D
h$ (L )について、
D h$ (m);T H$ (n):“=?”
・(A)を表示部4に表示し、ステップd4 でキー
人力部14で操作されたキーを読込む。Next, in step d3, string functions Th$(C) and D representing the column item names and row item names, respectively, are used.
For h$ (L), D h$ (m); T H$ (n): “=?”
-Display (A) on the display section 4, and read the keys operated by the key manual section 14 in step d4.
ステップc15 、d6 、 d7では、得られたキー
人力が数値入力キ一群6であるが、または入替キー12
であるが、または列指示キー11であるかの判断をそれ
ぞれ行なう。ステップd5 で判断が11定であれば
、ステップd8 で入力された数値をキー人力バラ7
747に格納し、ステップd9 でこの数値を表示部
4で表示する。このような数値データの入力が終了する
と、表示n4に表示されでいる表の第1行第1列に、た
とえば63″の表示がなされることになる。In steps c15, d6, and d7, the obtained key input is the numerical input key group 6, or the replacement key 12.
However, a judgment is made as to whether the key is the column designation key 11 or the column designation key 11, respectively. If the judgment is 11 constant in step d5, the numerical value input in step d8 is
747, and this numerical value is displayed on the display unit 4 in step d9. When input of such numerical data is completed, 63'', for example, is displayed in the first row and first column of the table displayed on display n4.
ステップd5の判断が否定であり、ステップd6の判断
が肯定であれば、当該表の数値データの入力が終了し、
後述するような行列入替処理を行なうことを要求してい
ることになり、ステップdl。If the judgment in step d5 is negative and the judgment in step d6 is affirmative, the input of numerical data for the table is completed;
This means that a request is made to perform matrix permutation processing as will be described later, and step dl.
で後述するこの処理を行ない、ステップd4に戻る。This process, which will be described later, is performed and the process returns to step d4.
ステラ7′d6の判断が否定であり、ステップd7の4
判断が肯定であれば、当該行のデータ入力において、−
列データの入力が終了し、次列目の入力を要求している
ことになり、処理はステップdllに移る。ステップd
ll ではキー人力パッ7ア47の記憶内容が、デー
タ関数Dh(ω、n)(現時点ではI+= m= n=
Q )に割付けられ、ステップd12″Chは、デー
タが入力された表の列数nが、前記ステップd2 で
定めた最大列数COになっているかどうかを判断する。Stella 7'd6's judgment is negative, step d7-4
If the judgment is positive, −
The input of column data is completed, and input of the next column is requested, and the process moves to step dll. step d
ll, the memory contents of the key manual pad 7a47 are the data function Dh(ω, n) (currently I+= m= n=
Q), and step d12''Ch determines whether the number of columns n of the table into which data has been input is the maximum number of columns CO determined in step d2.
すなわち該行の全列に亘るデータ入力が終了したかどう
かを判断する。判断結果が否定であれば、さらに次列目
のデータ入力が可能となり、ステップ+413 で列
数を示すカウント値nを+1インクソメントし、処理を
ステップJ3に戻す。That is, it is determined whether data input for all columns of the row has been completed. If the judgment result is negative, it becomes possible to input data for the next column, and in step +413, the count value n indicating the number of columns is incremented by +1, and the process returns to step J3.
前記入テンプd12 で判断結果が肯定であれば、当
該行の全列に亘るデータ入力が終了したことになり、処
理はステップd14 に移り、現在データ入力作業中
の表の行数を表すカウント値lが、前記ステップd2
で定めた最大計数LOと等しいかどうかをe11断す
る。等しければデータ入力処理は、終了する0等しくな
ければさらに次行口の入力が可能であり、ステップd1
5でカウント値Iを+1インクリメントし、処理を次行
に進め、ステップd1Gでカウント値口をたとえば「0
」に初期化し、当該行の第1列目の入力ができる状態と
する。このようにしたのち、処理はステップd3 に
戻される。If the judgment result in the input template d12 is affirmative, it means that data input across all columns of the row concerned has been completed, and the process moves to step d14, where a count value representing the number of rows in the table currently undergoing data input work is input. l is the step d2
It is determined in e11 whether the count is equal to the maximum count LO determined in . If they are equal, the data input process ends. If they are not equal, it is possible to input the next row, and step d1
5, the count value I is incremented by +1, the process advances to the next line, and the count value port is set to, for example, "0" in step d1G.
” to enable input in the first column of the row. After doing this, the process returns to step d3.
前記ステップd7 において、判断結果が否定であれ
ば、操作者はデータの入力操作ではない繰作を行なって
いることになり、処理はステップd17゜di 8.d
l 9.d20に順次的に移り、それぞれ操作されたキ
ーがカーソルキ一群8のうち、右方キー48であるか、
または下方キー49であるが、または上方キー50であ
るか、または左方キー51であるかをそれぞれ順次的に
判断する6操作されたキーがカーソルキ一群8でもない
場合、処理はステップd4に戻される。If the judgment result in step d7 is negative, it means that the operator is performing an operation that is not a data input operation, and the process proceeds to step d17゜di8. d
l9. The process sequentially moves to d20, and it is determined whether the operated key is the right key 48 of the cursor key group 8.
If the operated key is not the cursor key group 8, the process returns to step d4. It will be done.
これらの判断処理ステップd17〜d20において、そ
れぞれ判断結果が1!r定であれば、処理はそれぞれス
テップd21 、d22.d23. d24に移り、列
方向位置を示すカウント値nを+1インクリメントし、
また行方向位置を示すカウント値印を+1インクリメン
トし、またこのカワント値…を−1デクリメントし、前
記カウント値nを一1デクリメントする。これらステッ
プd21〜d24の処理は、表示部4においてカーソル
52を、カーソルキ一群8によって示される任意の方向
に移動させた表示を得るために行なわれる。In each of these judgment processing steps d17 to d20, the judgment result is 1! If r is constant, the processing is performed in steps d21, d22, respectively. d23. Moving to d24, the count value n indicating the column direction position is incremented by +1,
Further, the count value mark indicating the position in the row direction is incremented by +1, the count value . . . is decremented by -1, and the count value n is decremented by -1. These steps d21 to d24 are performed to obtain a display in which the cursor 52 is moved in an arbitrary direction indicated by the group of cursor keys 8 on the display section 4.
前記ステップd21〜d24以降の処理は、共通にステ
ップd25 に移り、まず列数を表すカウント値11
が(CO+ 1 )に等しいかどうかの判断を行なう、
これは表示部4におけるカーソル52が、現時点で表示
される表を行方向に超えたかどうかのtl Fltであ
る。この判断が成立すれば、ステップd2(3でカラン
トイ直nを一1デクリメントし、カーソル52を表外に
出さずステップd21 に移る。The processes after steps d21 to d24 commonly proceed to step d25, where the count value 11 representing the number of columns is first counted.
determine whether is equal to (CO+1),
This is tl Flt indicating whether the cursor 52 on the display unit 4 has exceeded the currently displayed table in the row direction. If this judgment is established, the cursor 52 is decremented by one in step d2 (3), and the process moves to step d21 without moving the cursor 52 out of the table.
前記ステップd25 の判断結果が否定であれば、ス
テップd26 の処理を行なうことなく、ステップd
27に移る。If the judgment result in step d25 is negative, step d26 is not performed and step d26 is not performed.
Move on to 27.
ステップd27 では、入力中の表で表示部4のカー
ソル52がこの表を列方向に超えた位置に表示されるか
どうかを判断する。判断結果が肯定であれば、ステップ
d2Bでカウント値lを一1デクリメントし、カーソル
52を表外に出さずステップd29 に移る。前記判
断が否定であれば、ステップd28の処理を行なうこと
なく、ステ・ンプd29に移る。In step d27, it is determined whether or not the cursor 52 on the display unit 4 is displayed at a position beyond the table in the column direction in the table being input. If the judgment result is affirmative, the count value l is decremented by one in step d2B, and the process moves to step d29 without moving the cursor 52 out of the table. If the above judgment is negative, the process moves to step d29 without performing the process of step d28.
ステップd29では、カウント値nが負であるかどうか
の判断を行なう。これは、表示部4におけるカーソルが
、前記表を左方に越える位置に表示されるかどうかの判
断である。判断結果が肯定であればステップd30でカ
ウント値nをOとし、ステップd31 に移る。前記
判断が否定であれば、ステ・ンブd30を行なうことな
く、ステップd31に移る。In step d29, it is determined whether the count value n is negative. This is a determination as to whether the cursor on the display section 4 is displayed at a position beyond the table to the left. If the judgment result is affirmative, the count value n is set to O in step d30, and the process moves to step d31. If the above judgment is negative, the process moves to step d31 without performing step d30.
ステップd31ではカウント値mが負であるかどうかの
判断を行なう。これは前記表示部4のカーソルが表を上
方に超えで表示されるかどうかの判断である。fJiF
IfrN果が閉定であれば、ステ・ンブd32でカウン
ト値mをOとし、処理がステップd4に移る。上記判断
が否定であれば、ステップd32の処理を行なうことな
く、処理はステップd4 に移される。In step d31, it is determined whether the count value m is negative. This is a determination as to whether or not the cursor on the display section 4 is displayed above the table. fJiF
If the IfrN result is closed, the count value m is set to O in step d32, and the process moves to step d4. If the above judgment is negative, the process moves to step d4 without performing the process of step d32.
このようにして上記第4図〜第6図の処理を行なうこと
によって、作成すべき表の題名、列項目名、行項目名、
および各データを入力することができる。このようにし
て、上記第1表を作成することができる。In this way, by performing the processes shown in Figures 4 to 6 above, the title, column item name, row item name,
and each data can be input. In this way, Table 1 above can be created.
第7図は本発明の一実施例の作成された表の行・列を入
替える処理手順を示すフローチャートである。第1図〜
第7図を参照して、この入替え処理について説明する。FIG. 7 is a flowchart showing a processing procedure for replacing rows and columns of a created table according to an embodiment of the present invention. Figure 1~
This replacement process will be explained with reference to FIG.
前記第6図を参照して説明しrコデータ関数Dh(m、
n)は、カウント値m、 nによる2変数のデータ関数
であったが、第1表の数値データ部分のみを各行列要素
毎に、最上行において最左列から右方へ、引続き第2行
について最左列から右方に、順次行列要素を計数して一
連の番号を与え、この番号を変数とする1変数のデータ
関数Dh(a)を、下記のように定義する。As explained with reference to FIG. 6, the r code data function Dh(m,
n) was a two-variable data function with count values m and n, but only the numerical data part of Table 1 was calculated for each matrix element from the leftmost column in the top row to the right, and then in the second row. The matrix elements are counted sequentially from the leftmost column to the right, and a series of numbers are given to the matrix elements. A one-variable data function Dh(a) using these numbers as variables is defined as follows.
D b(a)m D b(+o、n)
・−(4)ここで、
a=(m −1)CO+n
このようにして、前記データ関数D h(m、n)に1
変数のデータ関数DI+(a)が1:1に対応する。こ
のような1変数のデータrA WLD b(a)を用い
て、上記第1表の数値データ部分のみを表示すると、下
記の第2表が得られる。D b(a)m D b(+o,n)
・−(4) Here, a=(m −1)CO+n In this way, the data function D h(m, n) has 1
The data functions DI+(a) of the variables correspond in a 1:1 ratio. When only the numerical data portion of the above Table 1 is displayed using such one-variable data rA WLD b(a), the following Table 2 is obtained.
第2表
本実施例の目的は、上記第2表の行・列を入替え、下記
ttS3表のデータ行列を生成させることである。Table 2 The purpose of this embodiment is to transpose the rows and columns of Table 2 above to generate the data matrix of Table ttS3 below.
第3表
第7図ステップe1 で第1図示の入替えキー12を繰
作し、この繰作によってステップe2 でカウント値
aを「1」に初期化する。In step e1 of FIG. 7 of Table 3, the exchange key 12 shown in FIG. 1 is operated repeatedly, and by this operation, the count value a is initialized to "1" in step e2.
ステップe3では、Dh(1)に割当てられている数値
データ(f51表の例に従えばr63J)を記憶部18
のXレジスタ31に格納する。ここで前記データ関fi
Db(a)は、前記第1表に示される対応する数値デー
タとともに、後述する入替え処理が終了した場合に論理
値「1」となり、完了していない場合には論理値「0」
となる入替え完了フラグも割付けられている。すなわち
現時点では入替え処理は起動されたばかりであり、すべ
てのカウント値aのデータ関数DI+(a)に関する前
記入替え完了フラグは、すべて論理値「0」であり、前
記第1表に示す数値データとともに、このフラグの内容
がこのステップe3 において、Xレジスタ31に格
納される。In step e3, the numerical data (r63J according to the example of the f51 table) assigned to Dh(1) is stored in the storage unit 18.
is stored in the X register 31 of. Here, the data relation fi
Db(a), together with the corresponding numerical data shown in Table 1 above, has a logical value of "1" when the replacement process described below is completed, and a logical value of "0" when it has not been completed.
A replacement completion flag is also assigned. In other words, at this moment, the replacement process has just been started, and the replacement completion flags for the data function DI+(a) for all count values a are all logical values "0", together with the numerical data shown in Table 1 above. , the contents of this flag are stored in the X register 31 in step e3.
ステップe4では、前記データ関数Dh(a)に割当て
られている切替え完了フラグが、論理値「1」であるか
どうかの判断を行なう。現時点ではこのフラグは論理値
「0」であり、処理はステップe5に移り、このデータ
関数DI+(1)の入替え完了フラグを論理値「1」に
セットする。ステップe6 では、論理値「1」の入
替え完了フラグを含むデータをXレジスタ31に再び記
憶する。In step e4, it is determined whether the switching completion flag assigned to the data function Dh(a) has a logical value of "1". At this moment, this flag has a logical value of "0", and the process moves to step e5, where the replacement completion flag of this data function DI+(1) is set to a logical value of "1". At step e6, data including the replacement completion flag of logical value "1" is stored in the X register 31 again.
ステップe7では前記カウント値aに関して上記第2表
から第3表への入替え処理を実現できる新たなカウント
値a′を下式に基づいて算出する。In step e7, a new count value a' that can realize the process of replacing the count value a from the second table to the third table is calculated based on the following formula.
第5式によってカウント値a(本実施例ではa=1゜2
1・・・、18)に対応するデータ関数DI+(a)の
データを、第5式によって算出されるa’ (第3表中
の数値1,2.・・・、18にその数値を示す)を、対
応させるものである。この対応関係は下記の第4表に示
される。According to the fifth formula, the count value a (in this example, a=1°2
The data of the data function DI+(a) corresponding to 1..., 18) is calculated by the fifth formula a' (the numerical values are shown in the numerical values 1, 2..., 18 in Table 3). ). This correspondence is shown in Table 4 below.
第4表
前記ステップe2で示したように、a=1と設定されて
いるとき、上記第5式および第4表から、a′=1が演
算される。したがってステップe8でDh(a’ )(
a’ = 1 )の入替え完了フラグは、すでにステッ
プe5 において「1」に設定されており、したがっ
てDh(1)は、第3表にいうa′=1の位置に固定さ
れたままの状態で、処理はステップe9に移る。Table 4 As shown in step e2 above, when a=1 is set, a'=1 is calculated from equation 5 and Table 4 above. Therefore, in step e8, Dh(a')(
The replacement completion flag for a' = 1) has already been set to "1" in step e5, so Dh(1) remains fixed at the position of a' = 1 in Table 3. , the process moves to step e9.
ステップe9では、前記力ワント値aが+1インクリメ
ントされ、ステップelo でこのカウント値aが第
1表の数値データの要素数(18)を越えているかどう
かが判WIされる。現時点ではこの判断は否定となり、
処理はステップe3に戻る。In step e9, the force want value a is incremented by +1, and in step elo it is determined whether this count value a exceeds the number of elements (18) of the numerical data in Table 1. At present, this judgment is denied.
The process returns to step e3.
ステップe3では、Dh(2)のデータがXレジスタ3
1に記tzれ、ステップC5でデータ関係Dh(2)の
入替え完了フラグが「1」にセットされる。In step e3, the data of Dh(2) is transferred to the X register 3.
1, and the replacement completion flag of the data relationship Dh(2) is set to "1" in step C5.
以下、前述の説明と同柿にステップeG、e7の処理が
なされ、上記第5式および第4表から、a=5からはa
′=8 が演算される。したがってステップe8でデ
ータ関数D b(a’ )(a’ = 8 )の入替え
完了フラグが「1」であるかどうかの判断が行なわれ、
現時点は否定となり、処理はステップall に移り
、データ関数Dh(a’)の入替え完了フラグを「1」
にセットする。Hereinafter, steps eG and e7 are performed on the same persimmon as described above, and from the above formula 5 and table 4, from a=5, a
'=8 is calculated. Therefore, in step e8, it is determined whether the replacement completion flag of the data function D b (a') (a' = 8) is "1" or not.
At this point, the result is negative, and the process moves to step all, where the replacement completion flag of data function Dh(a') is set to "1".
Set to .
ステップe12では、データ関数[)l+(a’ )(
a’ =8)の入替え完了フラグの内容も含むデータと
、前記ステップe6においてデータ関数DI+(2)の
入替え完了フラグを含むデータが転送されているXレジ
スタのデータと、相互にデーダの交換を行なう。したが
ってデータ関数Db(a’ ) (a’ = 7 )に
は、データ関数DI’+(2)のデータが与えられる。In step e12, the data function [)l+(a')(
The data including the contents of the replacement completion flag of a' = 8) and the data of the X register to which the data including the replacement completion flag of data function DI+(2) were transferred in step e6 are mutually exchanged. Let's do it. Therefore, data of the data function DI'+(2) is given to the data function Db(a') (a'=7).
すなわちデータ関数DI+(2)は、第3表のa′=7
の配置位置に割付けられる。またここでXレジスタ31
には、データ関数DI+(7)のデータが記憶されてい
る。In other words, the data function DI+(2) is a'=7 in Table 3.
Assigned to the placement position. Also here, X register 31
The data of the data function DI+(7) is stored in .
この後、処理はステップe7 に戻り、データ関数D
t+(7)に対して上記f55式および第4表から明ら
かなようにデータ関数D I+(a’ ) (a’ =
3 )が対応づけられる。すなわち第3表に示すよう
にデータ関数Dh(7)は、a′=3で示す配置位置に
1贋当てられる。以下、ステップe7 、e8 、el
1 、 el2を1サイクルとする処理を繰返し行な
うことによって、上記第4表の「4→2」の処理が行な
われる段階に到達する。すなわちこのときステップe7
においてa′=2 が演ヰされる。この時点では上記
第2表において第3表のように入替え処理が行なわれて
いないのは、データ関数Dh(18)のみとなる。After this, the process returns to step e7 and the data function D
As is clear from the above f55 formula and Table 4 for t+(7), the data function D I+(a' ) (a' =
3) are associated. That is, as shown in Table 3, data function Dh(7) has one false value assigned to the arrangement position indicated by a'=3. Below, steps e7, e8, el
By repeating the process in which 1 and el2 are one cycle, a stage is reached where the process "4→2" in Table 4 above is performed. That is, at this time step e7
a'=2 is performed in . At this point, only the data function Dh(18) in Table 2 has not been replaced as shown in Table 3.
ステップe8ではデータ関数Dh(a’ )(a’ =
2 )の入替え完了フラグが、「1]であるがどうか
の判断が行なわれる。このときa=1 に関する処理
ですでにデータ関数Db(1)の入替え完了フラグは、
ステップe5 において「1」にセットされており、
したがってステップe8 の判断は肯定となり、処理
はステップe9に移る。ステップe9ではカウント値の
値が+1インクリメントされ、a=3 となって、ステ
ップe12 に移り、この判断は否定となり、処理は
ステップe3に移る。In step e8, the data function Dh(a')(a' =
It is determined whether the replacement completion flag of 2) is "1". At this time, the replacement completion flag of data function Db(1) has already been set to "1" in the process regarding a=1.
It is set to "1" in step e5,
Therefore, the determination at step e8 is affirmative, and the process moves to step e9. At step e9, the count value is incremented by +1, and a=3, and the process moves to step e12, whereupon this determination is negative and the process moves to step e3.
ステップe3ではデータ関数DI+(3)の内容が、既
に「1」にセットされている入替え完了フラグの内容と
ともに、Xレジスタ31に転送される。ステップe4
では判断結果が肯定となり、処理はステップe9に移
る。以下同様に、ステップe9.clO、e3 、e4
を1サイクルとする処理が繰返し行なれ、カウント値a
は順次+1インクリメントされつつ、ステップe9
においてインクリメントされた結果がa=19 となる
場合に到達する。このときステップelo の判断は
肯定となり、処理はステップe13に移って、任意のカ
ウント値aの入替え完了フラグが、すべて「0」にリセ
ットされる。In step e3, the contents of the data function DI+(3) are transferred to the X register 31 together with the contents of the replacement completion flag, which has already been set to "1". Step e4
Then, the judgment result becomes affirmative, and the process moves to step e9. Similarly, step e9. clO, e3, e4
The process with 1 cycle is repeated, and the count value a
is sequentially incremented by +1, and step e9
It is reached when the result of incrementing in is a=19. At this time, the determination in step elo becomes affirmative, and the process moves to step e13, where all the replacement completion flags of the arbitrary count values a are reset to "0".
このようにして、m2表のデータ行列から第3表のデー
タ行列への行・列の入替え処理が完了する。In this way, the row/column swapping process from the data matrix of table m2 to the data matrix of table 3 is completed.
以上のように本実施例によれば、第7図の70−チャー
トに示す処理プログラムを用い、かつ行・列の入替え用
ワーキングレノスタであるXレジスタ31のみを用いる
ことによって、前記性・列の入替え処理を実現できる。As described above, according to this embodiment, by using the processing program shown in the chart 70 in FIG. It is possible to realize the replacement process.
すなわちこのような人、替えプログラムを用いる電子計
算機1における入替えプログラムは格段に簡素化され、
また従来技術で述べたようにむやみに大きな記憶容量の
メモリを準備する必要がな(、構成を格段に簡略化する
ことができる。In other words, the replacement program in the computer 1 using such a person and replacement program is greatly simplified,
Furthermore, as described in the prior art, there is no need to prepare a memory with an unnecessarily large storage capacity (and the configuration can be significantly simplified).
効 果
以上のように本発明に従えば、行列状の配列態様を有す
るデータ分の行・列の配置位置を入替える処理を灯なう
にあたって簡素なプログラムと、単−個のレノスタとを
用いることによって実現できる。したがってこのような
データ処理装置の構成が格段に簡略化され、また操作性
も格段に向上する。Effects As described above, according to the present invention, a simple program and a single renostar are used to perform the process of changing the arrangement positions of rows and columns of data having a matrix arrangement. This can be achieved by Therefore, the configuration of such a data processing device is greatly simplified, and the operability is also greatly improved.
第1図は本発明の一実施例の計算機1の平面図、第2図
は計算機1の電気的猜戊を示すブロック図、第3図は表
データ領域25のデータ割付は状態を示す図、第4図は
計算機1における表の題名と列項目名人力の手順を示す
フローチャート、第5図は行項目名人力の手順を示す7
0−チャート、第6図は表のデータ入力処理を示す7C
I−チャート、第7図は表の行・列の入替え処理を示す
フローチャートである。
1・・・計算機、4・・・表示部、5・・・文字人力キ
一群、6・・・数値人力キ一群、9・・・表機能キー、
1o・・・行指示キー、11・・・列指示キー、12・
・・入替えキー、14・・・キー人力部、25・・・表
データ領域、31・・・Xレノスタ、3つ・・・列項目
名望域、41・・・行項目名領域、43・・・データ領
域、47・・・キー人力バッファ
代理人 弁理士 西教 圭一部
第2図
第7 図FIG. 1 is a plan view of a computer 1 according to an embodiment of the present invention, FIG. 2 is a block diagram showing the electrical components of the computer 1, and FIG. 3 is a diagram showing the state of data allocation in the table data area 25. Figure 4 is a flowchart showing the procedure for manually inputting the table title and column item name in Calculator 1, and Figure 5 is a flowchart showing the procedure for manually inputting the row item name.
0-Chart, Figure 6 is 7C showing the table data entry process.
I-Chart, FIG. 7 is a flowchart showing the process of permuting rows and columns of a table. DESCRIPTION OF SYMBOLS 1...Calculator, 4...Display section, 5...1 group of character manual keys, 6...1 group of numerical manual keys, 9...table function keys,
1o... Row direction key, 11... Column direction key, 12.
...Replace key, 14...Key human resources department, 25...Table data area, 31...X reno star, three...Column item name desired area, 41...Row item name area, 43...・Data area, 47...Key human buffer agent Patent attorney Keibu Saikyo Figure 2 Figure 7
Claims (1)
と、 前記データ行列を表示する表示手段と、 レジスタとを含み、 レジスタを用いて、前記データ行列に関し、転置行列の
配列態様を有するデータ行列を発生させるようにしたこ
とを特徴とするデータ処理装置。[Scope of Claims] Storage means for storing a data group having a matrix arrangement; display means for displaying the data matrix; and a register, wherein the register is used to display a transposed matrix for the data matrix. A data processing device characterized in that it generates a data matrix having an arrangement form.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61181701A JPS6336475A (en) | 1986-07-31 | 1986-07-31 | Data processor |
EP87108562A EP0253138B1 (en) | 1986-06-17 | 1987-06-13 | Data processing device |
DE8787108562T DE3776598D1 (en) | 1986-06-17 | 1987-06-13 | DATA PROCESSING SYSTEM. |
US07/464,702 US5043916A (en) | 1986-06-17 | 1990-01-16 | Data processing device for processing and displaying table data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61181701A JPS6336475A (en) | 1986-07-31 | 1986-07-31 | Data processor |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6336475A true JPS6336475A (en) | 1988-02-17 |
JPH0586579B2 JPH0586579B2 (en) | 1993-12-13 |
Family
ID=16105346
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61181701A Granted JPS6336475A (en) | 1986-06-17 | 1986-07-31 | Data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6336475A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5442743A (en) * | 1991-07-08 | 1995-08-15 | Sharp Kabushiki Kaisha | Electronic device for calculating and displaying a matrix |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61181702A (en) * | 1985-01-18 | 1986-08-14 | エムアーエヌ・ゲーハーハー・シーネンフエルケールステヒニク・ゲゼルシヤフト・ミト・ベシユレンクテル・ハフツング | Wheel set for railway orlling stock |
-
1986
- 1986-07-31 JP JP61181701A patent/JPS6336475A/en active Granted
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61181702A (en) * | 1985-01-18 | 1986-08-14 | エムアーエヌ・ゲーハーハー・シーネンフエルケールステヒニク・ゲゼルシヤフト・ミト・ベシユレンクテル・ハフツング | Wheel set for railway orlling stock |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5442743A (en) * | 1991-07-08 | 1995-08-15 | Sharp Kabushiki Kaisha | Electronic device for calculating and displaying a matrix |
Also Published As
Publication number | Publication date |
---|---|
JPH0586579B2 (en) | 1993-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6336475A (en) | Data processor | |
JP3102828B2 (en) | Programming device | |
US5043916A (en) | Data processing device for processing and displaying table data | |
JPH10198741A (en) | Table data processing device and its program recording medium | |
US5515304A (en) | Portable calculator for an array calculation | |
JPS6336477A (en) | Data processor | |
JPS6336476A (en) | Data processor | |
JP3162095B2 (en) | Image display control device | |
JP3817937B2 (en) | Computing device and storage medium | |
JP3500812B2 (en) | Table processing equipment | |
JP3091116B2 (en) | XY coordinate display method | |
JPS6031675A (en) | Table control system in simplified tabulation device | |
JP2723236B2 (en) | Character reader | |
EP0358860A2 (en) | Apparatus and method for processing data corresponding to labels | |
JP3006988B2 (en) | Spreadsheet apparatus and data management method for spreadsheet apparatus | |
JPH0445875B2 (en) | ||
JPS6337393A (en) | Data display system | |
JPS60175106A (en) | Numerical control device | |
JP3268144B2 (en) | Character display method | |
JPH03176716A (en) | Electronic apparatus | |
JPS60262693A (en) | Item-axis changeable graph forming machine | |
JPS63138391A (en) | Character processor | |
JPH0749860A (en) | Multiple document processor | |
JPH01142837A (en) | Test data forming system | |
JPS61267857A (en) | Graph display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |