JPS58191057A - Miniature electronic computer with program - Google Patents

Miniature electronic computer with program

Info

Publication number
JPS58191057A
JPS58191057A JP7340682A JP7340682A JPS58191057A JP S58191057 A JPS58191057 A JP S58191057A JP 7340682 A JP7340682 A JP 7340682A JP 7340682 A JP7340682 A JP 7340682A JP S58191057 A JPS58191057 A JP S58191057A
Authority
JP
Japan
Prior art keywords
array
memory
name
program
area
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.)
Pending
Application number
JP7340682A
Other languages
Japanese (ja)
Inventor
Namio Aoki
青木 波男
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 JP7340682A priority Critical patent/JPS58191057A/en
Publication of JPS58191057A publication Critical patent/JPS58191057A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To realize the effective use of a small memory region, by making the same memory region possible to designate by plurally arrayed names. CONSTITUTION:A display driver 3 is connected to a CPU2 via a bus line, and a display 4 which performs a dot display by means of a liquid crystal is connected to the driver 3. The driver 3 feeds a liquid crystal driving signal to the display 4 in response to the display data given from a CPU2. Furthermore an array code generator 5, subtractor register 6. A code generator 7, array memory 8 and a program memory 9 are connected to the CPU2. The generator 5 produces the array name codes in accordance with the array data fed from the CPU2.

Description

【発明の詳細な説明】 この発明は、同一のメモリ領域をkkの配列名で指定可
能とするプログラム付小型寛子計算機に関する・ 従来、プログブム付小M電子1tchのメモリ配列領域
としては、BムSXO言飴による一次元配列を例に挙げ
ると、A(0)〜A(n)、B(0) 〜BCm、−・
・・・・Z (o)〜2(ロ)のように、各配列名毎に
複数の領域を有するもの、或はA(o)〜A (n)の
ように1つの配列領域のみ有するものがある。今、たと
えば、データの各プロッタ毎の集計或は全体の集計を実
行する場合、前者では、A−Zの各配列名に対応させて
ブロック毎のデータを入力させ、そして各配列毎に集計
値を算出すれば、ブロック毎の集計を容易に求めること
ができる◎しかも、全体の集計を行なう場合には、各配
列毎の集計値を予め算出した後、これらの合計を算出し
なければならず、その結果、プ田グラムのステップ数が
多くなるという欠点があった。また、ブロック内のデー
タ数が夕ない場合には、各配列のメモリ領域内で未使用
の領域が多くなり、無駄な領域として残されてしまうと
いう欠点があった。他方、後者では、たとえば、ム(0
)〜ム(4)、ム(5)〜A(9)・・・・・・のよう
にメモリ領域を複数に分割し、分割領域の夫々にブロッ
ク毎のデータを入力させ、そして、全体のデ−夕集計は
% A(o)〜ム(n)までの合計を求めることにより
容易に算出されるが、ブロック毎の集計は、各分割領域
を指定する場合に配列の中の各変数を考慮してプログラ
ムを組む必要があり、プログラムが複雑となるという欠
点があった。また、配列名がムのように特定のものしか
使えず、プレグラミングの際に配列名によって各ブロッ
クのデータの内容を把握することはできなかった。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a small Hiroko computer with a program that allows the same memory area to be specified by an array name of kk. Conventionally, the memory array area of a small M electronic 1tch with a program was Taking a one-dimensional array based on word candy as an example, A(0) ~ A(n), B(0) ~ BCm, -.
...Those that have multiple areas for each array name, such as Z(o) to 2(b), or those that have only one array area, such as A(o) to A(n). There is. Now, for example, if you want to aggregate data for each plotter or aggregate the entire data, in the former case, input data for each block in correspondence with each array name from A to Z, and then enter the aggregate value for each array. By calculating , you can easily obtain the total for each block ◎Moreover, when performing the overall total, you must calculate the total value for each array in advance and then calculate the total of these. As a result, there was a drawback that the number of steps in the putagram increased. In addition, when the number of data in a block is unlimited, there is a drawback that there is a large amount of unused area within the memory area of each array, and the area is left as a waste area. On the other hand, in the latter case, for example, mu(0
) ~ M (4), M (5) ~ A (9)... Divide the memory area into multiple parts, input data for each block into each divided area, and then Data aggregation is easily calculated by calculating the sum of %A(o) to m(n), but when specifying each divided area, each variable in the array is It is necessary to take this into account when creating a program, which has the disadvantage of making the program complicated. In addition, only specific array names such as ``mu'' can be used, and it is not possible to understand the data contents of each block by the array name during preprogramming.

この発明は、上述した事情を背景になされたもので、そ
の目的とするところは、同一のメモリ領域を複数の配列
名で指定可能として少ないメモリ領域を有効に使うと共
に配列指定を任意の配列名で行なえるようにしたプレグ
ラム付小型電子計算機を提供することにある。
This invention was made against the background of the above-mentioned circumstances, and its purpose is to make it possible to specify the same memory area with multiple array names, thereby effectively using a small memory area, and to allow array specification to be performed using any array name. The object of the present invention is to provide a small electronic computer with a preprogram that allows the user to perform the following tasks.

以下、この発明を図面に示す一実施例に基づいて具体的
に説明する。第1図は、BAS工0言語によるプルグラ
ム演算機能を備えた小型電子計算機の要部を示すブロッ
ク図である。図において、1はキーボードで置数キー、
各種機能キー等が備えられている。このキーボード1と
CPU(中央2から出力されるキーサンプリング信号に
したがって操作キーに対応するキー操作信号がキーボー
 ゝドlから0PU2に入力される0また、ON’U2
には表示ドライバ3がパスラインを介して接続され、ま
た表示ドライバ3には、液晶によりドツト表示を行なう
表示装置か接続されている。表示ドライバ3は0PU2
から送られてくる表示データにしたがって液晶駆動信号
を表示装置4に送出する。さらにまた、0PU2には、
配列名コード発生器5、引数レジスタ6、ムコード発生
器7、配列メモリ8、プログラムメモリ9がそれぞれ接
続されている。配列名コード発生器5はQ P U 2
 カら送られてくる配列データに応じて配列名コードを
生成出力する。この場合、上記配列データは、たとえば
、ム(5)、Z(o)のように、A〜2の配列名をこ引
数を添えたデータで、そして、配列名コード発生器5は
入力される上記配列名データに基づいてその配列名「ム
」〜rZJに対応する数値コード「1」〜(313」を
生成し、0PU2から入力されるタイミング信号t1に
同期して読出し、減算器10に供給するものである。ま
た、!1%レジスタ6は、入力される配列データの引数
を一時記憶するもので、optr2から入力されるタイ
ミング信号1.に同期してその内容を加算器11に供給
するものである。さらに、Aコード発生器7は、配列名
「ム」に対応する数値コード「1」を固定的に生成出力
するもので、0PU2かも送られてくるタイミング信号
tに同期して配列名「ム」の数値フード「1」を減算器
lOに供給するものである。減算器10は入力される両
数値コードを減算し、その減算結果を加算器11に対し
て出力する。
Hereinafter, the present invention will be specifically described based on an embodiment shown in the drawings. FIG. 1 is a block diagram showing the main parts of a small electronic computer equipped with a program calculation function using the BAS engineering language. In the figure, 1 is the number key on the keyboard,
It is equipped with various function keys. According to the key sampling signal output from the keyboard 1 and the CPU (center 2), a key operation signal corresponding to the operation key is input from the keyboard 1 to 0PU2.
A display driver 3 is connected to the display driver 3 via a pass line, and a display device that displays dots using liquid crystal is also connected to the display driver 3. Display driver 3 is 0PU2
A liquid crystal drive signal is sent to the display device 4 according to display data sent from the display device 4. Furthermore, in 0PU2,
An array name code generator 5, an argument register 6, a mu code generator 7, an array memory 8, and a program memory 9 are connected, respectively. Array name code generator 5 is Q P U 2
Generates and outputs an array name code according to the array data sent from the server. In this case, the above array data is data in which the array names of A to 2 are appended with this argument, such as Mu(5) and Z(o), and the array name code generator 5 is input. Numerical codes "1" to (313) corresponding to the array names "Mu" to rZJ are generated based on the above array name data, read out in synchronization with the timing signal t1 input from 0PU2, and supplied to the subtracter 10. Furthermore, the !1% register 6 temporarily stores the argument of the input array data, and supplies its contents to the adder 11 in synchronization with the timing signal 1 input from the optr 2. Furthermore, the A code generator 7 is a device that permanently generates and outputs the numerical code "1" corresponding to the array name "MU", and 0PU2 is also arrayed in synchronization with the sent timing signal t. The numeric value ``1'' of the name ``mu'' is supplied to the subtracter IO.The subtracter 10 subtracts both input numeric codes and outputs the subtraction result to the adder 11.

加算器11は入力される両−値コードを加算し、その加
算結果をアドレスポインタ12に対して出力し、アドレ
スポインタ12がらは配列メそす8のアドレスデータが
送出される。
The adder 11 adds the input two-value codes and outputs the addition result to the address pointer 12, from which the address data of the array 8 is sent.

配列メ毫り8は、第2図(4)に示すごとくム〜2の配
列名に対応する26稙類のアドレス領域を有する構成で
、各アドレス領域は、「O」〜「25」のアドレスに対
応づけられており、指定アドレス領域と0PU2との間
でデータの送受が実行される。
As shown in FIG. 2 (4), the array map 8 has a configuration having 26 address areas corresponding to the array names of M~2, and each address area has addresses "O" to "25". , and data is sent and received between the specified address area and 0PU2.

プログラムメモリ9は、ニーザブログツムが記憶される
もので、そのニーザブログラムは0Ptlr2に送られ
て実行される。
The program memory 9 stores the knee program, and the knee program is sent to the 0Ptlr2 and executed.

次に、上記実施例の動作を説明する0今またとえば、プ
ログラムメモリ9に次のような処理を行なうプログラム
が記憶されている場合を例にとり説明していく。この例
は、15人の学生を、5人ずつのグループに分け、各グ
ループ毎に夫々異なる学科、たとえば、国語、数学、物
理のテストを行った場合の各グループ毎の得点集計、全
体の得点集計を実行するもので、各学生にム〜0の文字
を対応させ、A−1は国語、E””:rは数学、K〜O
は物理のテスシに解答したものとする。而して、全学生
のテストの点数を入力させる場合には、下記に示すよう
なプログラムにより実行することができる。
Next, the operation of the above-mentioned embodiment will be explained, taking as an example a case where the program memory 9 stores a program that performs the following processing. In this example, 15 students are divided into groups of 5, and each group is given a test in a different subject, for example, Japanese, mathematics, and physics. It performs aggregation, and each student is assigned a letter from M to 0, A-1 is Japanese, E"": r is Mathematics, and K to O.
It is assumed that you have answered the physics test. If the test scores of all students are to be entered, the program shown below can be used.

10  D工M ム(25) 20  ’VORX=OTo  14 30  工NPUT   Y 40   A(3) = Y !50  111xr   x 60  1ND のプフグテムにおいて、10番目のステートメントが実
行されると、第2図(4)に示すように、配列メモリ8
は配列名「ム」で表わされるA(0)〜ム(i−>” 
)の−次元配列テーブルが確保される・次に、20番乃
至50番の不テートメントが実行されると、最初に変数
名Xに「0」を代入してXの値を1つずつ増加させなか
らXの値が14になるまで30番、40番のステー)メ
ン)が繰り返され、40番のステー)メンシの実行にし
たがって各人ム〜0の得点をキーボード1から入力する
と、各人の得点がムに)で指定されるアドレス領域表(
0)〜′ムー4pに書き込まれる。すなわち、先ず、C
PU2から出力される配列データ「Aco)Jにより、
配列名コード発生器5から数値′コーFr1J、また、
引数レジスタ6から数値゛コード「0」が夫々[7され
る。この結果、減算器10に入力されるvりfmコード
は夫々「1」となるので、その演算結果は「0」となる
、そして、加算器11の出力は、「0」となるので、ポ
インタ12はアドレスデータ「0」を出力し、配列メモ
リ8のOv地、すなわち変数Aのアドレス領域表0を指
定する。次に、OP u Z tp&配列f−タr A
co)J rAti4)2J カ順次田力されると、減
算器10の出力は変わらず「0」を(ロ)定的に出力し
ているので、加算器11での演算結果は、引数レジスタ
6の出力に応じた値となり、ポインタ12はアドレスデ
ータ「1」〜「14」を順次出力する。この結果、配列
メモリ8の1#r地〜14番地、すなわち、変数B〜0
のアドレス領域A1〜ム1.が指定される。このように
して各アドレス領域が順次指定されていくので、キーボ
ード1から順次入力された各人の得点は、対応するアド
レス領域に壷き込まれるようになる。
10 D Engineering M Mu (25) 20 'VORX=OTo 14 30 Engineering NPUT Y 40 A (3) = Y! When the 10th statement is executed in the program of 50 111xr x 60 1ND, the array memory 8 is
is A(0) to Mu(i->” represented by the array name “mu”)
)'s -dimensional array table is secured.Next, when the 20th to 50th disclaimers are executed, "0" is first assigned to the variable name X, and the value of X is incremented by one. Steps 30 and 40 are repeated until the value of The address area table (where the person's score is
0) to 'Mu 4p. That is, first, C
According to the array data “Aco)J” output from PU2,
From the array name code generator 5, the numerical value ' code Fr1J, and
The numerical value code "0" is set to [7] from the argument register 6, respectively. As a result, each of the vfm codes input to the subtracter 10 becomes "1", so the operation result becomes "0", and the output of the adder 11 becomes "0", so the pointer 12 outputs address data "0" and specifies the Ov location of the array memory 8, that is, the address area table 0 of the variable A. Next, OP u Z tp & array f-ta r A
co) J rAti4) 2J When the number is applied sequentially, the output of the subtracter 10 remains constant and outputs "0" (b), so the result of the operation in the adder 11 is the one in the argument register 6. The value corresponds to the output, and the pointer 12 sequentially outputs address data "1" to "14". As a result, addresses 1#r to 14 of the array memory 8, that is, variables B to 0
Address areas A1 to M1. is specified. In this way, each address area is sequentially specified, so that the scores of each person input sequentially from the keyboard 1 are stored in the corresponding address area.

この場合、変数A−1は国語、1〜Jは数学、I〜0は
#J塩の得点である。
In this case, the variable A-1 is the Japanese language score, 1 to J are the math scores, and I to 0 are the #J salt scores.

而して、上述のようにして配列メモリ8に書き込まれた
データに基づいて国語、数学、物理の各学科毎の得点集
計及び全体の合計得点を求め、それを出力させる場合に
は、下記に示すようなプレダラムにより行なうことがで
きる。
Therefore, if you want to calculate the total score for each subject of Japanese language, mathematics, and physics and the total score of the whole based on the data written to the array memory 8 as described above, and output it, please do the following. This can be done with a pre-dullam as shown.

10  Q=o:R=o:8=o:U−。10 Q=o:R=o:8=o:U-.

20  FORP=o  TO4 30Q−Q+A(P) 40  R−R+F (P) so  It−8+K (P) 60  NEXT  P 70  FORT=o  To  1480  U−U
+A(T) 90  NEXT  T 100  PRINT”KOKUGO=’;Qllo 
 PRINT″8UGAKU=” 1R120PRIN
T″扉UTURI=“;5130  PRINT“Z]
1CNTAI=” ;U14G  END このプ田グラムにおいて、lO番の′ステートメントが
実行されると、変数Q s Rs 8 % Uに夫々「
O」の値が代入され、初期設定処理が行なわtyるO次
いで、20番乃至60番のステートメントが実行される
と、最初に変数Pに「0」を代入してPの内S″′:・
1つずつ増加させなからPの値が「4」になるまで30
番乃至50番のステートメントが繰り返され、Qに国語
の得点集計、Rに数学の得点集計、Sに物理の得点集計
が求められる。すなわち、30番のステートメントの実
行において、Pの値が「0」〜「4」に増加していくと
、cpU2から配列データ「ム(IIIJ〜「ム(4)
」が出力される。このため、上述した場合と同様に、減
算器10からは「0」が固定的に出力されるので、加算
器11の出力は引数レジスタ6の出力に応じて「0」〜
「4」となり、配列メモリ8の0番地〜4番地が順次ア
ドレス指定される。これによって、変数ム〜Eが読み出
されて夫々集計されるため、変数4は国語の得点集計と
なる。また、40番のステートメントの実行において、
Pの値が「0」〜「4」に増加していくと、CPU2か
ら配列データ「F 、・−〜「F(4−が順次出力され
る。このため、配列名コード発生器5から配列名rFJ
に対応する数値コード「6」が出力されるので、減算器
10からは数値コード「5」が一定的に出力される。そ
して、加算器11は引数レジスタ6の出力rOJyr4
Jに「5」を加算し、その結果−ポインタ12の出力は
「5」、〜「9」となる。したがって、配列メ毫り8の
5番地〜9番地が順次アドレス指定されて変数F〜Jが
読み岨され1夫々集計されるので、変&Rは数学の得点
集計となる。さらに150番のステートメントの実行に
おいて、Pの値が「0」〜・「4」に増加していくと、
CPU2かも配列データ「K(ol」〜rK (4)J
が順次出力される。このため、配列名コード発生器5か
ら配列名rKJに対応する数値コード「11」が出力さ
れるので、減算器10からは数値スート「10」が同定
的に出力される。
20 FORP=o TO4 30Q-Q+A(P) 40 R-R+F (P) so It-8+K (P) 60 NEXT P 70 FORT=o To 1480 U-U
+A(T) 90 NEXT T 100 PRINT”KOKUGO=’;Qllo
PRINT″8UGAKU=” 1R120PRIN
T″door UTURI=";5130 PRINT"Z]
1CNTAI=";U14G END In this program, when the statement number 10' is executed, "
Then, when statements 20 to 60 are executed, the value of "0" is assigned to the variable P, and the initialization process is performed.・
Increase by 1 until the value of P reaches "4" by 30
Statements 50 through 50 are repeated, and Q is asked to tally up Japanese language scores, R is asked to tally up math scores, and S is asked to tally up physics scores. In other words, when the value of P increases from "0" to "4" during the execution of statement No. 30, the array data "MU(IIIJ~"MU(4)
" is output. Therefore, as in the case described above, since "0" is fixedly output from the subtracter 10, the output of the adder 11 varies from "0" to "0" depending on the output of the argument register 6.
4, and addresses 0 to 4 of the array memory 8 are sequentially addressed. As a result, variables M to E are read out and totaled, respectively, so that variable 4 becomes the total Japanese score. Also, in executing statement number 40,
As the value of P increases from "0" to "4", the CPU 2 outputs array data "F", ... "F(4-") sequentially. Therefore, the array name code generator 5 outputs the array data NamerFJ
Since the numerical code "6" corresponding to is output, the subtracter 10 constantly outputs the numerical code "5". Then, the adder 11 outputs the output rOJyr4 of the argument register 6.
Add "5" to J, and as a result, the output of the pointer 12 becomes "5" to "9". Therefore, addresses 5 to 9 of array page 8 are sequentially addressed, variables F to J are read, and each one is totaled, so that the variable &R becomes a math score total. Furthermore, in the execution of statement number 150, as the value of P increases from "0" to "4",
CPU2 may be array data “K(ol” ~ rK (4)J
are output sequentially. Therefore, since the array name code generator 5 outputs the numerical code "11" corresponding to the array name rKJ, the subtracter 10 outputs the numerical suit "10" in an identifying manner.

そして1加算話11は引数レジスタ6の出力rOJ〜「
4」に「lO」を加算し、その結果、ポインタ12の出
力は「lO」〜「14」となる。したがって、配列メモ
リ8のlO番地〜14番地が順次アドレス指定されて変
数に〜0が読み出され、なる。而して、次の70@乃至
90番のステー)メン)が実行されると、最初に変数T
にrOJを代入してTの値を1つずつ増加させながらT
の値が「14」になるまで80番のステートメンFが繰
り返される。この結果、配列メモリ8のO番地〜14番
地がアドレス指定されて変数ム〜0が読み出され、夫々
集計されるので、変数Uは全体の得点集計となる。続い
て、100番乃至130番のステートメントが実行され
ると、KOKUGO。
And 1 addition story 11 is the output rOJ of argument register 6 ~ "
As a result, the output of the pointer 12 becomes "10" to "14". Therefore, addresses 10 to 14 of the array memory 8 are sequentially addressed and 0 is read to the variable. Therefore, when the next steps 70 to 90 are executed, the variable T is first
While substituting rOJ into and increasing the value of T by one,
Statement F of number 80 is repeated until the value of becomes "14". As a result, addresses O to 14 of the array memory 8 are addressed, variables M to 0 are read out, and each is totaled, so that the variable U becomes the total score of the whole. Next, when statements 100 to 130 are executed, KOKUGO.

!1lUGAKU、BUTUBI、zEN丁ム!ノ文字
データとそれに対応する計算結果、すなわち1国語の得
点集計91数学の得点集計8、物理の得点集計8、全体
の得点集計りが夫々表示装置4に送られ、表示される。
! 1lUGAKU, BUTUBI, zEN DINGMU! The character data and the corresponding calculation results, that is, the Japanese score tally 91, the math score tally 8, the physics score tally 8, and the overall score tally are respectively sent to the display device 4 and displayed.

このように構成されたプログラム付小型電子計算機によ
れば、配列メモリ8のアドレス領域が任意の配列名で指
定された際にその配列名に対応するアドレス領域Jj1
.−の領域を指定配列名のアドレス領域とするように構
成したから、配列メモリ8の同一アドレス領域を被数の
配列名で指定できる。
According to the small computer with a program configured in this manner, when the address area of the array memory 8 is designated by an arbitrary array name, the address area Jj1 corresponding to the array name is specified.
.. Since the configuration is such that the - area is used as the address area of the specified array name, the same address area of the array memory 8 can be specified by the array name of the arbiter.

すなわち、第2図(ム)は、配列名rAJで指定された
一次元配列テーブルの構成を示すもので、0〜flit
地は、アドレス領域表、 (1> 〜ム0.)に対応づ
けられ、対応する変数ム〜2が記憶される。また、第2
図(B)は、配列名rFJで指定された一次元配列デー
プルの構成を示すもので、5番地〜2s番地は、アドレ
ス領域F(・)〜r(!・)に対応づけられ、対応する
変liF〜2が記憶される。さらに、第2図(C)は、
配列名rKJで指定された一次元配列テーブルの構成を
示すもので、1011地〜2s番地は、アドレス領域に
4・)〜K(□・)に対応づけられ、対応する変@に−
Zが記憶される。このように、配列メモリ8の同一アド
レス領域を、たとえば、Xミム。。)ミニF <s)ミ
K u)のように、ム、F、にの複数の配列名で指定可
能で、上述の例では、国麟、数学、物理のグループ毎に
、ム、F、にの配列名を任意に対応づけられ墨ので、変
数の内容を連想できるような配列名の使用が可能となる
。そして、全体の集計は、上述の例では、配列メモリ8
のアドレス指定域A (@)〜A(14)の集計で求め
ることができ、従来の如くブロックごとの集計後に全体
をU=Q+B+8で集計するものに比べ、プ嘗グテムの
ステップ数を少なくすることがで會、特に、グループの
数が多い場合に有効なものとなる。また、たとえば、ム
(,0)ミU (11)のように引数が2桁になってし
まうものを1桁におさえることができるので、配列の引
数を小さくするような配列名を使用することにより、メ
モリを有効に用いられる。また、配列メモリ8に他のメ
モリパッケージを付設して配列メモリ8の2以下を拡張
した場合、その拡張部分にも、たとえば5A(tt)三
FQt)の′如く、恒等式が使用できる。
In other words, FIG. 2 (m) shows the structure of a one-dimensional array table specified by the array name rAJ, and 0 to flit
The location is associated with the address area table (1>~mu0.), and the corresponding variable mu~2 is stored. Also, the second
Figure (B) shows the configuration of a one-dimensional array diple designated by the array name rFJ, where addresses 5 to 2s are associated with address areas F(・) to r(!・), and the corresponding The change liF~2 is stored. Furthermore, FIG. 2(C) shows
This shows the configuration of a one-dimensional array table specified by the array name rKJ. Addresses 1011 to 2s are associated with 4・) to K(□・) in the address area, and the corresponding variable @ is -.
Z is memorized. In this way, the same address area of the array memory 8 is, for example, X mim. . ) mini F < s Since array names can be arbitrarily associated, it is possible to use array names that can be associated with the contents of variables. In the above example, the total tally is calculated by the array memory 8.
It can be obtained by aggregating the address specification area A (@) ~ A (14), which reduces the number of steps in the program compared to the conventional method of aggregating each block and then aggregating the whole using U = Q + B + 8. This is especially effective when there are many groups. Also, for example, you can reduce arguments that would otherwise take two digits, such as MU(,0)MIU(11), to one digit, so use an array name that reduces the number of arguments for the array. Therefore, memory can be used effectively. Further, when the array memory 8 is expanded by attaching another memory package to two or less of the array memory 8, an identity such as '5A(tt)3FQt)' can be used for the expanded portion as well.

なお、上記の例では一次元配列について説明したが、た
とえば、ム(2”りミB(s−t)のように、n次元(
31’;z 2なるII数)の配列においても、本発明
の要旨を逸脱しない範囲で適用可能であることは勿論で
ある0 以上、詳細に説明したように、この発明に係るプ四ダラ
ム付小型電子計算機によれば、同一メモリ領域をamの
配列名で指定可能に構成したから、少ないメモリ領域を
有効に使うことができると共に1配列指定を任意の配列
名で行うことができ−る。
Note that in the above example, a one-dimensional array was explained, but for example, an n-dimensional (
31'; z 2), it is of course applicable to the arrangement without departing from the gist of the present invention. According to the compact electronic computer, since the same memory area can be specified by an am array name, a small memory area can be used effectively and one array can be specified by any array name.

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

図面は、この発明の一実施例を示し、[図はこの発明を
適用した小麺電千計算機の全体のプ豐ツタ図、第2m(
ム)、(B)、(C)は、配列者ム、F s Kで指定
される一次元配列テーブルの構成を示す図である。 2−−−−CPU、!”’・・・配列名コード発生器、
6・・・・・・引数レジスタ、7・−・−ムコード発在
−18・・・・−配列メ毫す、9・・・−6−791ダ
テムメモリ、10・・・・−減算器、11・・・・・・
加算器、12”・・・・ポインタ。 特許出願人 カシオ計算機株式会社 第2 (A)        CB) (C) V列に j”−’−”−−−−−一−−I
The drawings show an embodiment of the present invention;
FIGS. 3A and 4B are diagrams illustrating the configuration of a one-dimensional array table specified by the array operator F s K. FIGS. 2---CPU,! ”'...Array name code generator,
6...Argument register, 7...-Mucode occurrence-18...-Array message, 9...-6-791 date memory, 10...-Subtractor, 11・・・・・・
Adder, 12"...pointer. Patent applicant: Casio Computer Co., Ltd. No. 2 (A) CB) (C) j"-'-"------I in column V

Claims (1)

【特許請求の範囲】[Claims] 予め設定されている配列名に対応する極数のアドレス領
域を有する配列メモリと、この配列メモリのアドレス領
域が任意の配列名で指定された際にその配列名に対応す
る前記領域のアドレスを算出する手段と、前記配列メモ
リの各アドレス領域のうち前記算出されたアドレス以降
の領域を前記指定配列者のアドレス領域とするアドレス
指定手段とを具備し、前記配列メモリの同一アドレス領
域を複数の配列名で指定可能としたことを特徴とするプ
ログラム付小型電子ti算機・
An array memory that has an address area of the number of poles corresponding to a preset array name, and when the address area of this array memory is specified with an arbitrary array name, calculates the address of the area corresponding to that array name. and addressing means for setting an area after the calculated address in each address area of the array memory as an address area of the designated array person, A small electronic TI calculator with a program that allows you to specify it by name.
JP7340682A 1982-05-04 1982-05-04 Miniature electronic computer with program Pending JPS58191057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7340682A JPS58191057A (en) 1982-05-04 1982-05-04 Miniature electronic computer with program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7340682A JPS58191057A (en) 1982-05-04 1982-05-04 Miniature electronic computer with program

Publications (1)

Publication Number Publication Date
JPS58191057A true JPS58191057A (en) 1983-11-08

Family

ID=13517275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7340682A Pending JPS58191057A (en) 1982-05-04 1982-05-04 Miniature electronic computer with program

Country Status (1)

Country Link
JP (1) JPS58191057A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62242265A (en) * 1986-04-14 1987-10-22 Sharp Corp Pocket computer having matrix calculation capability
JPS63103360A (en) * 1986-10-21 1988-05-09 Sharp Corp Desk-top electronic calculator
JPS63103357A (en) * 1986-10-21 1988-05-09 Sharp Corp Desk-top electronic calculator

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62242265A (en) * 1986-04-14 1987-10-22 Sharp Corp Pocket computer having matrix calculation capability
JPS63103360A (en) * 1986-10-21 1988-05-09 Sharp Corp Desk-top electronic calculator
JPS63103357A (en) * 1986-10-21 1988-05-09 Sharp Corp Desk-top electronic calculator

Similar Documents

Publication Publication Date Title
JPS5947638A (en) Chart producing device
JPS58191057A (en) Miniature electronic computer with program
US4951033A (en) Input device of character data
JPH01145714A (en) Device and method for inputting character
JPS5654679A (en) Memory area display system for memory
JPS5472909A (en) Recording method for program passing trace of electronic switchboard
JPS61243327A (en) Recorder
JPS6023876A (en) Electronic appliance
JPS5857778B2 (en) Random number initial value setting method
JPH0445875B2 (en)
JPS5882296A (en) Dot matrix display system
JP2840281B2 (en) Character processing apparatus and method
JPS599245Y2 (en) display device
JPS59140573A (en) Key inputting system
JPS5829477A (en) Game electric table
JPH02281325A (en) Slip output device
JPS5949577A (en) Electronic appliance
JPS62172435A (en) Processor for attaching consecutive number in simplified language
Yuen Computation Procedures of the Chinese Abacus
JPS6355715B2 (en)
JPH0454626A (en) Data output device
JPS61104879A (en) Letter processor
JP2000112930A (en) Fraction input display device and program recording medium
JPS59140556A (en) Display control system
JPH04223545A (en) Compact electronic computer equipped with graphic display function