JPS61115162A - Small-sized electronic computer - Google Patents

Small-sized electronic computer

Info

Publication number
JPS61115162A
JPS61115162A JP23630884A JP23630884A JPS61115162A JP S61115162 A JPS61115162 A JP S61115162A JP 23630884 A JP23630884 A JP 23630884A JP 23630884 A JP23630884 A JP 23630884A JP S61115162 A JPS61115162 A JP S61115162A
Authority
JP
Japan
Prior art keywords
program
alpha
input
sentence
variable
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
JP23630884A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yoshino
大之 吉野
Morihito Tamiya
田宮 守人
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 JP23630884A priority Critical patent/JPS61115162A/en
Publication of JPS61115162A publication Critical patent/JPS61115162A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate the formation of a program by displaying a variable name together with '?' if an alpha sentence written by comments except a variable does not lie in INPUT command and then displaying the alpha sentence together with '?' when an alpha sentence lies. CONSTITUTION:Prior to the execution of arithmetic processing, program data is inputted to write the prescribed program in a program RAM16. Where a numeric is inputted from the outside and (INPUT) instruction substituted for some variable is given in the program formation, (INPUT) command is set in such a format (? R) or (INPUT R) with respect to the input instruction without the alpha sentence. When the alpha sentence such as a comment is applied, a program is set in such a format as ('alpha sentence=' R). Thus contents of an input request can be easily found, thereby preventing an errone ous input. In case of inputting the alpha sentence, prescribed marks such as '?' and a key operation of 'INPUT' instruction, etc., are unnecessary, whereby a program is shortened, whose contents become easy to understand, and the formation of a program is facilitated.

Description

【発明の詳細な説明】 [発明の技術弁゛野] 本発明はプログラム機能を備えた小型電子式計算機に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a small electronic calculator with a program function.

[従来技術とその問題点] プログラム機能を備えた小型電子式計算機では、プログ
ラミング言語としてBa5icが一般に用いられている
。そして、この種、小型電子式計算機おいて、外部から
の入力を要求する命令として、次のような表示方式があ
る。
[Prior Art and its Problems] Ba5ic is generally used as a programming language in small electronic computers equipped with a program function. In this type of small electronic calculator, there are the following display methods as commands that request input from the outside.

(a>  外部より数値を入力し、それをある変数に代
入するというrlNPUTJ命令を実行する場合、例え
ばrlo  INPUT  RJ等の命令を実行する場
合、「?」等の入力を要求するマークのみを表示部に表
示し、この状態で入力待ちとなる。
(a> When executing the rlNPUTJ command that inputs a numerical value from the outside and assigns it to a certain variable, for example, when executing a command such as rlo INPUT RJ, only a mark requesting input such as "?" is displayed. and waits for input in this state.

<1))  上記(a)の命令において、アルファ文を
含んでいる場合、例えばrlo  1NPLIT“ハン
ケイ′°;RΔ等の命令を実行する場合には、「ハンケ
イー?」を表示して入力待ちとなる。
<1)) If the command in (a) above contains an alpha statement, for example, when executing an instruction such as rlo 1NPLIT "Hankei'°; Become.

しかしながら、上記(a)のように「?」のマークのみ
を表示する場合は、多くの入力命令が続いであると、今
、何を入力しているのか分かり難くなる。このため従来
では上記(b)に示したように(a)の命令に対してコ
メント等を記入したアルファ文を書き加えているが、こ
のアルファ文は、上記(a)の命令を全部記した上でそ
の前等に追加している。このためrINPUTJ等の余
分なキー操作が必要となり、プログラムの作成が面倒に
なる。
However, when only the "?" mark is displayed as in (a) above, it becomes difficult to understand what is currently being input when many input commands follow. For this reason, conventionally, as shown in (b) above, an alpha sentence in which comments etc. are written is added to the command in (a), but this alpha sentence contains all the commands in (a) above. I added it before that above. Therefore, extra key operations such as rINPUTJ are required, making it troublesome to create a program.

[発明の目的] 本発明は上記の点に鑑みてなされたもので、プログラム
の作成が容易になると共に、変数に数値を代入する場合
に何を入力要求しているのかが容易に分かる小型電子式
計算機を提供することを目的とする。
[Object of the Invention] The present invention has been made in view of the above points, and provides a small electronic device that facilitates the creation of programs and allows easy understanding of what input is required when assigning numerical values to variables. The purpose is to provide a formula calculator.

[発明の要点] 本発明は、外部より数値を入力し、それをある変数に代
入するというrlNPtJTJの命令を実行する場合に
、そのrlNPUTJの命令文中に変数以外のコメント
等の書かれたアルファ文がなければ変数名を“?′°マ
ークと共に表示し、アルファ文があればそのアルファ文
を゛?”マークと共に表示するようにしたものである。
[Summary of the Invention] The present invention provides an alpha statement in which comments other than variables are written in the rlNPUTJ instruction statement when executing an rlNPtJTJ instruction that inputs a numerical value from the outside and assigns it to a certain variable. If there is no alpha statement, the variable name is displayed with a "?" mark, and if there is an alpha statement, the alpha statement is displayed with a "?" mark.

[発明の実施例] 以下図面を参照して本発明の一実施例を説明する。第1
図において、11はキー入力部で、数値キー、ファンク
ションキー、アルファベットキー、カナキー、変数キー
としての機能を兼ねる入力要求用の?キー等を備えてい
る。そして、このキー入力部11から入力されるデータ
は、キー入力バッファ12を介して1ilJ御部13へ
送られると共に、演算レジスタ部14へ送られる。上記
制御部13は、キー入力部11から入力されるデータに
従って上記演算レジスタ部14及び演算部15に制御指
令を与える。
[Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, numeral 11 is a key input section for input requests that also functions as numeric keys, function keys, alphabet keys, kana keys, and variable keys. Equipped with keys etc. Data input from the key input section 11 is sent to the 1ilJ control section 13 via the key input buffer 12 and also to the calculation register section 14. The control section 13 gives control commands to the arithmetic register section 14 and the arithmetic section 15 according to data input from the key input section 11 .

上記演算レジスタ部14は、内部に例えばX、Y、2等
の各種演算用レジスタを備えており、プログラムRAM
16、変数用レジスタ部11、表示部18が接続されて
いる。上記表示部18は、例えば液晶表示素子を使用し
てドツトマトリクス方式により構成しており、数値と共
にアルファベット文字、カナ文字等が表示できるように
なっている。そして、上記演算レジスタ部14は、プロ
グラムRAM16から読出されるデータを内部レジスタ
に記憶した後、演算部15及び代入文判断部19へ出力
する。この代入文判断部19は、演算レジスタ部14か
ら送られてくるデータの中から代入文を判断して制御部
13へ出力する。また、この制御部13は、キー入力デ
ータ等に応じてプログラムカウンタ20を制御し、プロ
グラムRAM16のアドレスを指定する。
The arithmetic register unit 14 is internally equipped with various arithmetic registers such as X, Y, 2, etc., and has a program RAM.
16, a variable register section 11, and a display section 18 are connected. The display section 18 is constructed using a dot matrix method using, for example, a liquid crystal display element, and is capable of displaying alphabetic characters, kana characters, etc. along with numerical values. The arithmetic register section 14 stores the data read from the program RAM 16 in an internal register, and then outputs the data to the arithmetic section 15 and the assignment statement judgment section 19. The assignment statement determining section 19 determines an assignment statement from among the data sent from the arithmetic register section 14 and outputs it to the control section 13 . The control unit 13 also controls the program counter 20 in accordance with key input data and the like, and specifies the address of the program RAM 16.

次に上記実施例の動作について説明する。演算処理を実
行する場合、それに先立ちキー入力部11からプログラ
ムデータを入力してプログラムRAM16に所定のプロ
グラムを書込んでおく。このプログラム作成において、
外部より数値を入力し、それをある変数に代入するとい
うrlNPUTJの命令を与える場合、入力命令のみで
アルファ文のないものについては、「?→R」あるいは
「INPUT  RJの形式でINPUT命令を設定す
る。また、コメント等のアルファ文を使用する場合は、
「“アルファ文=″→R」の形式でプログラムを設定す
る。
Next, the operation of the above embodiment will be explained. Before executing arithmetic processing, program data is inputted from the key input section 11 and a predetermined program is written into the program RAM 16. In creating this program,
When giving an rlNPUTJ command that inputs a numerical value from the outside and assigns it to a variable, set the INPUT command in the form of "? → R" or "INPUT RJ" if there is only an input command and no alpha statement. Also, when using alpha statements such as comments,
Set the program in the format of ““alpha statement=”→R”.

しかして、演算処理時には、プログラムRAM16から
記憶プログラムを演算レジスタ部14に読出し、その設
定プログラムに従って演算処理を実行する。以下、外部
からの入力を要求する命令について、その表示処理動作
を第2図のフローチャートを参照して説明する。実行キ
ーか操作されると、制御部13はプログラムカウンタ2
0を制御し、第2図のステップA1に示すようにプログ
ラムRAM16に記憶されているプログラムデータを演
算レジスタ部14に読出す。この演算レジスタ部14に
読出されたプログラムデータは、代入文判断部19へ送
られ、ステップA2に示すようにアルファ文か否か判断
される。この代入文判断部19における判断結果は、制
御部13へ送られる。上記ステップA2において、プロ
グラムデータがアルファ文ではないと判断された場合は
、ステップA3に進んで“?パのマークであるか否か判
断され、” ? ”のマークでなければ更にステップA
4において“′IN P U T ”であるか否か判断
される。このステップA4において“INPLJT″で
はないと判断された場合は、外部からの入力を要求る命
令ではないので、ステップA5に進んで他の処理を実行
する。
During arithmetic processing, the stored program is read from the program RAM 16 to the arithmetic register section 14, and the arithmetic processing is executed according to the set program. Hereinafter, the display processing operation for commands requesting external input will be explained with reference to the flowchart of FIG. 2. When the execution key is operated, the control section 13 starts the program counter 2.
0, and reads the program data stored in the program RAM 16 to the arithmetic register section 14 as shown in step A1 of FIG. The program data read into the arithmetic register section 14 is sent to the assignment statement judgment section 19, where it is judged whether or not it is an alpha statement as shown in step A2. The determination result of this assignment statement determination section 19 is sent to the control section 13. In step A2 above, if it is determined that the program data is not an alpha statement, the process proceeds to step A3, where it is determined whether it is a "?pa" mark. ” If it is not marked, proceed to step A.
4, it is determined whether or not it is "'IN P UT". If it is determined in step A4 that the command is not "INPLJT", the command does not require input from the outside, and the process proceeds to step A5 to execute other processing.

また、上記ステップA3において、プログラムデータが
“?”マークであると判断された場合は、ステップ八〇
に進み、次が“→゛のマークであるか否か判断する。こ
のステップ八〇において“→”のマークではないと判断
された場合、つまり、“?”マークに“→”マークが連
続していないと判断された場合は外部からの入力を要求
する命令ではないので、上記ステップA5に進んで他の
処理を行なう。そして、上記ステップ八〇において、a
→”のマークが検出された場合、あるいは上記ステップ
A4において“I N P tJ T ”のコードが検
出された場合は、外部からの入力を要求する命令である
ので、ステップA7に進み、“→”又は“I N P 
U T ”の次の変数R及び?”マークの表示処理を行
なう。すなわち、プログラムRAM16から読出された
プログラムが第3図に示すように外部からの入力を要求
する「?→R」またはrlNPUT  RJの命令であ
った場合は、表示部18に「R?」を表示し、ステップ
八8に示すキー入力待ちの状態となる。
If it is determined in step A3 that the program data is a "?" mark, the process proceeds to step 80, where it is determined whether the next mark is "→゛".In step 80, " →” mark, in other words, “?” mark. If it is determined that the "→" mark is not consecutive to the "→" mark, the command does not require input from the outside, so the process proceeds to step A5 and performs other processing. Then, in step 80, a
→” mark is detected, or if the code “I N P tJ T ” is detected in step A4 above, this is a command requesting input from the outside, so the process goes to step A7 and the code “→” is detected. ” or “I N P
Processing to display the next variable R and the ? mark after ``UT'' is performed. That is, if the program read from the program RAM 16 is a command "?→R" or rlNPUT RJ that requests input from the outside as shown in FIG. 3, "R?" is displayed on the display section 18. Then, the system enters a state of waiting for key input as shown in step 88.

また、上記ステップA2において、プログラムデータが
アルファ文であると判断された場合は、ステップA9に
進んで次のデータが“→”のマークであるか否かを判断
する。次のデータが→”のマークでなければ外部からの
入力を要求する命令ではないので、上記ステップA5に
進んで他の処理を行なう。また、上記ステップA9にお
いて、次のデータが“→”のマークであると判断された
場合は、ステップA10に進み、アルファ文の文字及び
“?”マークの表示処理を行なう。アルファ文を含んだ
命令が例えば第3図に示すように「“ハンケイー“→R
」であれば、表示部18に「ハンケイー?」を表示し、
ステップ八8に示すようにキー入力待ちの状態となる。
If it is determined in step A2 that the program data is an alpha statement, the process proceeds to step A9, where it is determined whether the next data is a "→" mark. If the next data is not marked with "→", it is not a command requesting input from the outside, so proceed to step A5 above and perform other processing.Also, in step A9 above, if the next data is marked with "→" If it is determined that it is a mark, the process proceeds to step A10, and the characters of the alpha sentence and "?" ” mark is displayed. For example, as shown in Figure 3, an instruction containing an alpha sentence is
”, the display section 18 displays “Hankey?”,
As shown in step 88, a key input waiting state is entered.

このステップA8において、表示部18に表示された指
示に基づいて数値データを入力することにより、その後
の処理が実行される。
In this step A8, subsequent processing is executed by inputting numerical data based on instructions displayed on the display section 18.

なお、上記実施例では“°?パマークの表示を行なった
が、これに限定されることなく、他の記号等を用いても
よい。
In the above embodiment, the "°? Pa mark" is displayed, but the present invention is not limited to this, and other symbols may be used.

[発明の効果] 以上詳記したように本発明によれば、外部より数値を入
力し、それをある変数に代入するrINPLJTjの命
令を実行する場合に、そのrINPUTJの命令文中に
変数以外のコメント等の書かれたアルファ文がなければ
変数名を“?°′等の所定マークと共に表示し、アルフ
ァ文がある場合は、そのアルファ文を“?”等の所定マ
ークと共に表示するようにしたので、今、何を入力要求
しているかが容易に分かり、入力ミスを防ぐことができ
る。また、アルファ文を入力する場合、117 tl等
の所定マークとか“I N P U T ”命令等のキ
ー操作が不要であるので、プログラムが短くなり、ブO
グラム内容が分かり易くなると共にプログラムの作成が
容易になる。
[Effects of the Invention] As detailed above, according to the present invention, when executing the rINPLJTj instruction that inputs a numerical value from the outside and assigns it to a certain variable, comments other than variables in the rINPUTJ instruction statement are If there is no alpha statement such as ``?°'', the variable name is displayed with a predetermined mark such as "? ” etc., so you can easily see what is currently being requested and prevent input errors.Also, when inputting alpha sentences, the predetermined marks such as 117 tl are displayed. Since there is no need for key operations such as "I N P U T" commands, the program is shortened and the program is short.
The content of the program becomes easier to understand and the program creation becomes easier.

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

図面は本発明の一実施例を示すもので、第1図は回路構
成を示すブロック図、第2図は動作内容を示すフローチ
ャート、第3図はキー操作例とそのキー操作に対応する
表示例を示す図である。 11・・・キー入力部、12・・・キー入力バッファ、
13・・・制御部、14・・・演算レジスタ部、15・
・・演算部、16・・・プログラムRAM、17・・・
変数用レジスタ部、18・・・表示部、19・・・代入
文判断部、20・・・プログラムカウンタ。
The drawings show one embodiment of the present invention, and FIG. 1 is a block diagram showing the circuit configuration, FIG. 2 is a flowchart showing the operation details, and FIG. 3 is an example of key operation and a display example corresponding to the key operation. FIG. 11...Key input section, 12...Key input buffer,
13... Control unit, 14... Arithmetic register unit, 15.
...Arithmetic unit, 16...Program RAM, 17...
Variable register section, 18... Display section, 19... Assignment statement judgment section, 20... Program counter.

Claims (2)

【特許請求の範囲】[Claims] (1)プログラム機能を備えた小型電子式計算機におい
て、特定キー及び変数名入力により、変数に外部入力を
代入するというプログラム命令を作成する手段と、プロ
グラム実行時上記変数に外部入力を代入するというプロ
グラム命令が与えられた際に上記変数名を所定マークと
共に表示部に表示する手段とを具備したことを特徴とす
る小型電子式計算機。
(1) In a small electronic calculator equipped with a programming function, a means for creating a program command for assigning an external input to a variable by inputting a specific key and a variable name, and a means for assigning an external input to the variable when the program is executed. A small electronic calculator characterized by comprising means for displaying the variable name along with a predetermined mark on a display section when a program command is given.
(2)プログラム機能を備えた小型電子式計算機におい
て、アルファ文及び変数名入力により、変数に上記アル
ファ文に対する外部入力を代入するというプログラム命
令を作成する手段と、プログラム実行時上記変数にアル
ファ文に対する外部入力を代入するというプログラム命
令が与えられた際に上記アルファ文を所定マークと共に
表示部に表示する手段とを具備したことを特徴とする小
型電子式計算機。
(2) In a small electronic calculator equipped with a programming function, means for creating a program instruction for assigning an external input for the alpha statement to a variable by inputting an alpha statement and a variable name; 1. A small-sized electronic calculator comprising means for displaying the alpha statement on a display unit together with a predetermined mark when a program instruction to substitute an external input into is given.
JP23630884A 1984-11-09 1984-11-09 Small-sized electronic computer Pending JPS61115162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23630884A JPS61115162A (en) 1984-11-09 1984-11-09 Small-sized electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23630884A JPS61115162A (en) 1984-11-09 1984-11-09 Small-sized electronic computer

Publications (1)

Publication Number Publication Date
JPS61115162A true JPS61115162A (en) 1986-06-02

Family

ID=16998870

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23630884A Pending JPS61115162A (en) 1984-11-09 1984-11-09 Small-sized electronic computer

Country Status (1)

Country Link
JP (1) JPS61115162A (en)

Similar Documents

Publication Publication Date Title
JPS61269764A (en) Small-sized electronic computer equipped with graph displaying function
JPS61115162A (en) Small-sized electronic computer
JPS6120902B2 (en)
JPS6148741B2 (en)
JPH03127122A (en) Arithmetic processing system in data processor
JPS5938870A (en) Electronic computer
JPS6142296B2 (en)
JP2757367B2 (en) Character processor
JPS62210572A (en) Documentation device
JP2728534B2 (en) Byte position identification code setting processing method
JPH0537314Y2 (en)
JP2727023B2 (en) Information processing device
JPS5894041A (en) Debug backup device for high-class language
JPH01158556A (en) Device for setting operational mode of electronic calculator
JPH02285414A (en) Key display processing system
JPS58112128A (en) Word processor
JP3371434B2 (en) Layout editing device
JPS60134335A (en) Printing method of source program
JPS6353639A (en) Comment sentence input control system
JPS63191260A (en) Program electronic computer
JPH04238564A (en) File input/output system for command procedure
JPS6277656A (en) Program debugging system
JPS6225788A (en) Display control system for auxiliary screen
JPH01139262A (en) Character laying-out apparatus
JPH0155496B2 (en)