JPS5911449A - Program computer - Google Patents

Program computer

Info

Publication number
JPS5911449A
JPS5911449A JP12185982A JP12185982A JPS5911449A JP S5911449 A JPS5911449 A JP S5911449A JP 12185982 A JP12185982 A JP 12185982A JP 12185982 A JP12185982 A JP 12185982A JP S5911449 A JPS5911449 A JP S5911449A
Authority
JP
Japan
Prior art keywords
program
comment information
input
comment
instruction
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
JP12185982A
Other languages
Japanese (ja)
Inventor
Hiroo Katsura
桂 宏生
Tsutomu Takahara
高原 勉
Yusuke Suzuoki
鈴置 祐介
Junji Tanaka
淳司 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP12185982A priority Critical patent/JPS5911449A/en
Priority to GB08318784A priority patent/GB2125589B/en
Priority to DE19833325153 priority patent/DE3325153A1/en
Publication of JPS5911449A publication Critical patent/JPS5911449A/en
Priority to GB08519131A priority patent/GB2162976B/en
Priority to US06/894,741 priority patent/US4727502A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators

Abstract

PURPOSE:To input a program to a computer, by providing an instruction storage memory storing a program instruction and a means for inputting fresh comment information replaced for the prgoram instruction to discriminate the presence of an inputted comment and form easily a program. CONSTITUTION:A program instruction is stored in a program instruction storage memory 1 of a program computer and fresh comment information is inputted by replacing the instruction with a program instruction with a comment information input means 2. The presence of the input of the fresh comment information is discriminated by a key input discriminating means 3 and a program instruction A read out from the memory 1 or the fresh comment information B discriminated by the means 8 is inputted to an output buffer memory 4 in place of the program. Further, the program instruction A or the fresh comment information B inputted to the memory 4 is supplied to an output device 5 according to the processing means of an ROM/CPU6, thereby to making the formation of the program easy.

Description

【発明の詳細な説明】 本発明は、主として事務処理に適したプログラム計算機
に係り、特にコメントとしての文字列と数値データの組
合せをプログラムできる計算機に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates primarily to a program computer suitable for office processing, and particularly to a computer that can program a combination of character strings and numerical data as comments.

本発明は、特にプログラム記憶命令に置換えてオペレー
タにより任意にキー人力されたコメント情報を出力でき
るプログラム計算機を提供することを目的としている。
An object of the present invention is to provide a program computer that can output comment information arbitrarily entered by an operator in place of program storage instructions.

従来のプロクラム計算機は、BASIC言語等でプログ
ラムされたコメントを出力できるが、一旦書き込まれた
プログラムコメントを変更することは一般に不可能であ
った。即ち、例えは、PRIN“MODEL”Bとプロ
グラムされたコメントは、Bの数値データと共に常にM
ODELと出力されるものであった。
Conventional program computers can output comments programmed in BASIC language or the like, but it is generally impossible to change program comments once written. That is, for example, a comment programmed as PRIN "MODEL" B will always appear in M along with the numerical data of B.
It was output as ODEL.

この場合、コメントを変更するため文字変数を定義する
ことが行われてきた。しかしこの方法はブロクラムか非
常に複雑となる欠点がある0即ち、文字変数を用いても
プリント文は印字しか実行ぜす、コメントfc変更する
ためには、インプット文などを追加したプログラムの作
成が必要となり、必然的にプログラムが複雑化する欠点
を有していた。
In this case, character variables have been defined to change comments. However, this method has the disadvantage of being extremely complex, i.e., even if character variables are used, the print statement only executes printing, and in order to change the comment fc, it is necessary to create a program that adds an input statement, etc. This has the drawback of inevitably complicating the program.

本発明は、」―記従来のプログラム計算機の諸欠点に鑑
みてなされたもので、文字変数と数値データの組合せに
よって出力(印字など)する方法に比べ、プログラムの
作成が簡単て容易であり、プログラム記憶命令をキー人
力コメント情報に適宜置換できるプログラム計算機を提
供せんとするもである。
The present invention was made in view of the various shortcomings of conventional program calculators, and it is simpler and easier to create programs than methods that output (print, etc.) a combination of character variables and numerical data. It is an object of the present invention to provide a program computer that can appropriately replace program storage instructions with key human comment information.

以下、本発明の一実施例を図面に従って詳しく説明する
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明の構成を示すブロック図であり、図に於
て、1はプログラム命令を記憶するメモリー(RAM領
域の一部)、2は上記プログラム命令に代えてキー人力
したコメント情報を入力するためのコメント情報入力手
段であり、例えば、プログラムされたコメントが“MO
DEL”の場合、具体的な機種の型番をコメントとして
入力したい場合などが考えられ、任意の型番を入力する
ためのものである。3は上記コメント情報の入力があっ
たかどうかを判別する回路であり、具体的にはキーコン
トローラ回路及びALU(演算回路)などにより判別さ
れる。4は上記プログラム記憶命令或いはこの命令に代
えてキー人力されたコメント情報を一時記憶するための
出力バッファメモリーである。5は出力バッファメモリ
ーの内容を印字もしくは表示するための出力装置である
。6は上記プログラム命令記憶メモリー1からのプログ
ラム命令を読み出して出力バッファメモリー4に入力し
■、或いはキー人力されたコメント情報をプログラム命
令に代えて出力バッファメモリーニ入力する■ための処
理手順を記述したROM及び一連の処理を遂行するCP
Uを含む演算制御手1段である。
FIG. 1 is a block diagram showing the configuration of the present invention. In the figure, 1 is a memory (a part of the RAM area) that stores program instructions, and 2 is a block diagram that stores comment information manually inputted by a key in place of the program instructions. This is a comment information input means for inputting, for example, if a programmed comment is
In the case of "DEL", there may be cases where you want to input the model number of a specific model as a comment, and this is for inputting an arbitrary model number. 3 is a circuit that determines whether or not the above comment information has been input. Specifically, this is determined by a key controller circuit, an ALU (arithmetic unit), etc. 4 is an output buffer memory for temporarily storing the program storage command or comment information entered manually in place of this command. 5 is an output device for printing or displaying the contents of the output buffer memory. 6 is an output device for reading program instructions from the program instruction storage memory 1 and inputting them into the output buffer memory 4; ■ A ROM that describes the processing procedure for inputting into the output buffer memory instead of program instructions and a CP that executes a series of processes.
This is one calculation control means including U.

第2図は、プログラムステップ毎にRAMに書き込まれ
るプログラム命令の一例を示したものである。この命令
は前述のプロクラム命令記憶メモリーに書き込まれ、第
1ステツプ目にはコメントとしての文字列”MODEL
”と、文字列と数値データとの区別をするべめの/、コ
ード(アルファベット/数値)及び数値を書き込むため
の()部が書き込まれる。同様にして第2ステツプ目に
はコメントとして“QUANTITY”が書き込まれ、
続いてコメントに対応した数値データが書き込まれる0 第3図は、出力バッファメモリーに書込まれたプログラ
ム命令の一例を示している。このプログラム命令は、キ
ー人力されたコメント情報力S存在するときは、コメン
ト情報に置換され、コメント情報が優先して出力される
ように構成される。
FIG. 2 shows an example of program instructions written to the RAM for each program step. This instruction is written to the program instruction storage memory mentioned above, and in the first step, the character string ``MODEL'' is written as a comment.
” and the / to distinguish between character strings and numerical data, the code (alphabetic/numerical) and the () part to write the numeric value. Similarly, in the second step, as a comment “QUANTITY ” is written,
Subsequently, numerical data corresponding to the comment is written. FIG. 3 shows an example of a program instruction written to the output buffer memory. This program command is configured such that, when the input comment information S exists, it is replaced with comment information, and the comment information is output with priority.

第4図は本発明によるプログラム計算機のシステム構成
図である。
FIG. 4 is a system configuration diagram of a program computer according to the present invention.

図に於て、システムは大別して、各種コントローラ(キ
ー、表示、印字用)、各種命令をメモリーから読み出し
書込むための手順を記憶するROM。
In the figure, the system is roughly divided into various controllers (for keys, display, and printing), and a ROM that stores procedures for reading and writing various instructions from memory.

ROMには各種JOB(表示、印字、演算など)部を割
り当てることによって処理が達成される。
Processing is accomplished by assigning various JOB (display, print, calculation, etc.) units to the ROM.

前述したプログラム命令記憶部、出力用ノ<・ソファメ
モリー、プログラムステップカウンター、コメント入力
があったときにセットされるフリップフロップ(又はフ
ラグ)など各種データを記憶するRAM、及び上記コン
トローラとメモリーとの情報の転送、演算、制御、処理
などを司どるCPUとに大別される。CPUは作業用レ
ジスタRを有し、このレジスタRUアキュムレータとし
て、またアドレス指定レジスタ等として使用される。ま
た命令レジスタIR,命令レジスタIRの内容をデコー
ドするデコーダID、インデックスレジスタI X、 
IY、プ[JグラムカウンタPC,リフレ゛ンシュカウ
ンタRC,演算回路A’LUk備え、これら(rfiテ
ータバス、アドレスバスヲ丹してデータの授受が行われ
、アドレスの指定が行われる。またTGは割込制御部を
示している。
The above-mentioned program instruction storage section, the output memory, the program step counter, the RAM that stores various data such as flip-flops (or flags) that are set when a comment is input, and the above-mentioned controller and memory. It is broadly divided into CPU, which controls information transfer, calculation, control, processing, etc. The CPU has a working register R, which is used as an RU accumulator, an addressing register, etc. Also, an instruction register IR, a decoder ID for decoding the contents of the instruction register IR, an index register IX,
IY, program counter PC, refresh counter RC, and arithmetic circuit A'LUk are provided, and data is exchanged and addresses are specified using these (RFI data bus and address bus). indicates an interrupt control section.

第5図は本発明のシステム動作を説明するためのフロー
チャートである。
FIG. 5 is a flowchart for explaining the system operation of the present invention.

まず、プログラム命令記憶用RAMにコメント(“MO
DEL’“なと)を含んだプログラムを書込み、実行を
開始すると、図示のフローチャートに従って第2図に示
した1ステツプ目のプログラムが実行される。ステップ
r++[於て、プログラムステップカウンタの内容(R
AMの一部)か初期値に設定され、1〕2でコメント情
報の入力があったときにセットされるフリップフロップ
A(RAM中)がリセット(n2)される。、次に03
でプログラムステップカウンタで示す命令のとり込みか
実行され、RAM内のプログラム命令を出カバソファメ
モリ(同じ< RAM領域の一部)へ記憶させる(第3
図参照)。次にn4で上記命令が表示、印字、演算の各
種JOBのいずれかを解読した内容に対応したJOB’
i実行する(n5)。実施例の場合は、MODEL ?
 ()と表示し、キー人力待ち(n6)となる。ステッ
プn6に於て、例えば、プログラム命令rMODEL 
 ? ()Jに代えてキー人力されたコメント情報を優
先して出力させたい場合、TV351闇98200と入
力する場合を考えると、TV351の入力によりステッ
プn 7 + n sへと進み、n8でコメント情報の
入力があったかどうかを判断し、コメント情報であれば
、ステップn8からn9へと進み、フリップフロップA
がA=1であるかどうかを判断し、A、〆1であるから
出力バッファの内容をクリヤーL(n+o)、新たに入
力したコメント情報の文字列(character)k
出力バッファへ記憶する”n)。こ5で、n12に於て
、コメント情報の入力があったことを示すためにRAM
内のフィリップフロップAiセットし、再びステップn
5へと戻り、TV351 と表示し、n6でキー人力待
ちとなる。次に数値データ98200が入力され、n7
+ngへと進み、n8で【Nキーの操作でコメント入力
でないことをジャッジし、この場合、n18へと進み、
出力バッファへ数値データの書き込みを実行し、再びn
5でコメントと共に数値データを表示する。こ\で、コ
メント及び数値データの入力が完了するとステップn7
でプログラムスタートキー(キーユニット内の)が操作
されると、TV351 98200と印字(n14 )
し、プログラムカウンタをカウントアツプ(n、、)し
、第2ステツプの実行へと移る。第2ステツプはQUA
NTITY()と表示し、キー人力待ちとなるが、QU
ANTITYというコメント(予めプログラムされた)
を変える必要がない場合は、数値、例えば50を入力し
、プログラムスタートキーを操作すると(n7)、QU
ANTITY50と印字することになる。このようにプ
ログラムカウンタ(CPU内のPC)に対応するプログ
ラム命令群を表示出力用バッファメモリ(第3図参照)
へと取り込む。
First, write a comment (“MO
When a program containing DEL'" is written and execution is started, the first step of the program shown in FIG. 2 is executed according to the flowchart shown. At step r++ R
A part of AM) is set to the initial value, and flip-flop A (in RAM), which is set when comment information is input in 1]2, is reset (n2). , then 03
The instruction indicated by the program step counter is executed, and the program instruction in the RAM is stored in the output sofa memory (part of the same RAM area).
(see figure). Next, in n4, the JOB' corresponding to the content that the above command decoded from any of the various JOBs such as display, printing, and calculation.
i Execute (n5). In the case of the example, MODEL?
() is displayed and the key is waiting for human power (n6). In step n6, for example, the program command rMODEL
? If you want to prioritize and output the comment information entered manually instead of ()J, consider inputting TV351 Yami 98200, then proceed to step n7+ns by inputting TV351, and input the comment information at n8. If it is comment information, the process proceeds from step n8 to step n9, and flip-flop A is input.
Determine whether A=1, clear the contents of the output buffer L(n+o) since A is 1, and write the newly input comment information character string (character) k
Store it in the output buffer (n). At step n12, the RAM is stored to indicate that comment information has been input.
Set the inner Philip flop Ai and step n again
Returns to 5, displays TV351, and waits for key personnel at n6. Next, numerical data 98200 is input, n7
Proceed to +ng, and at n8, [judge that it is not a comment input by operating the N key, in this case, proceed to n18,
Write numerical data to the output buffer and write n again
5 displays numerical data along with comments. At this point, when inputting comments and numerical data is completed, step n7
When the program start key (inside the key unit) is operated, TV351 98200 is printed (n14).
Then, the program counter is counted up (n, . . .), and the execution of the second step is started. The second step is QUA
NTITY() is displayed and the key is waiting for human power, but QU
Comment ANTITY (pre-programmed)
If there is no need to change the QU
ANTITY50 will be printed. In this way, a buffer memory for displaying and outputting a group of program instructions corresponding to the program counter (PC in the CPU) (see Figure 3)
take it into.

解読器(インタープリタ−)にて各々のJOBに撮り分
け、表示、印字、演算を実行するか、特に表示の場合は
入力待ちとなる。このとき、コメント、数値データの入
力か受は付けられ、入力がコメントであればMODEL
? ’にクリアーして入力されたコメント、例えばTV
351に出力用バッファへ書き込むことによって、入力
されたコメント情報先して印字することが可能である。
A decoder (interpreter) separates the images into each job, displays, prints, and performs calculations, or in the case of display, it waits for input. At this time, comments and numerical data input or reception is added, and if the input is a comment, MODEL
? Comments entered after clearing ', for example, TV
By writing the input comment information to the output buffer in step 351, it is possible to print out the input comment information first.

即ち、キー人力を受けつけ、まずスタートキーでない場
合は、まず、コメントかどうかを判断し、コメントであ
ればフリップフロップAが0であれば、出力バッファを
クリアーして新たに入力されたコメントを出カバソファ
へ書き込むことかできる。そして表示をし、Ke37人
力待ちとなり、数値であれば()部へ数値を書き込む。
That is, when a key input is accepted, if it is not the start key, first determine whether it is a comment or not, and if it is a comment, if flip-flop A is 0, the output buffer is cleared and the newly input comment is output. You can write on the hippopotamus sofa. Then, it is displayed, Ke37 waits for human power, and if it is a numerical value, it is written in the () section.

以上の様にして出力バッファを介することにより、プロ
グラムに書き込まれたコメントに優先して新たに入力さ
れたコメントを優先して印字することができる。上記の
実施例はプログラムに書き込まれたコメントヲ出カバッ
ファに於てクリアーし新たに入力されたコメントを書き
込む方法について説明したが、両方のコメントを出力バ
ッファに書き込む、即ち、プログラム・コメントに追加
してキー人力コメントを記憶させることが可能である。
By using the output buffer as described above, newly input comments can be printed with priority over comments written in the program. The above example explains how to clear comments written in the program in the output buffer and write newly input comments, but it is also possible to write both comments to the output buffer, that is, add them to the program comment. It is possible to memorize key human comments.

例えば、出力バッファに対してカーソル動作を実行する
ことにより達成でき、キー人力と表示の関係を示ぜば次
のようになる。
For example, this can be achieved by performing a cursor operation on the output buffer, and the relationship between keystrokes and display is as follows.

キー人力     表 示 1i>      MODEL  ? −>−ンレ1))   MODEL  ?TV  35
1    MODEL  TV351」一連の如く、カ
ーソル(P)t7回操作することQてより、?までカー
ソルを進めTV351と操作することにより、プログラ
ムされているコメントと新たに入力されたコメントとを
結合させて出力させることができる。そして、スタート
キーを押ぜは、この出力バッファの内容を印字(又は表
示)し、次のステップの実行に移る。
Key human power Display 1i> MODEL? ->-Nre1)) MODEL? TV 35
1 MODEL TV351" cursor (P) t operation 7 times Q. By advancing the cursor to and operating the TV 351, the programmed comment and the newly input comment can be combined and output. When the start key is pressed, the contents of this output buffer are printed (or displayed) and execution of the next step is started.

以」−説明したように、本発明のプログラム計算機によ
れば、要求されるプロント機能に従って、入力したテー
クの意味を具体的にしたい場合など、文字変数と数値デ
ータの組合せにより印字等の出力方法に比べ、プロクラ
ムが極めて簡単に作成し易い等の利点かある。
- As explained above, according to the program computer of the present invention, output methods such as printing can be performed by combining character variables and numerical data, such as when you want to make the meaning of the input take more concrete according to the required prompt function. It has the advantage that it is extremely easy to create a program.

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

第1図は本発明のプログラム計算機に於ける発明の構成
図、第2図はプログラム命令記憶メモリの内容の一例を
示す図、第3図は出力バッファ・メモリーの内容の一例
を示す図、第4図はシステム構成図、第5図はシステム
の動作を説明するためのフローチセートである。 lニブログラム命令記憶メモリー 2:コメント情報入
力手段 3:キー人力判別手段 4:出−カバッファ・
メモリー 5:出力装置 6:ROM/CPU 代理人 弁理士 福 士 愛 彦 (他2名)手続補正
書(方式) 昭和 57年11 月λλ日 特許庁長官殿 (!1′!i許庁            殿)1、事
イ1の表示 特願昭57−121859 2、発明の名称 プログラム計算機 3 補正をする者 事件との開係   特許出願人 4、代理 人 住 所  @545大阪市阿倍野区長池町22番22号
昭和57年10月26日
FIG. 1 is a block diagram of the program computer according to the present invention, FIG. 2 is a diagram showing an example of the contents of the program instruction storage memory, FIG. 3 is a diagram showing an example of the contents of the output buffer memory, and FIG. FIG. 4 is a system configuration diagram, and FIG. 5 is a flowchart for explaining the operation of the system. 1 Niprogram command memory 2: Comment information input means 3: Key manual determination means 4: Output buffer
Memory 5: Output device 6: ROM/CPU Agent Patent attorney Yoshihiko Fukushi (and 2 others) Procedural amendment (method) November 1981, λλ, Mr. Commissioner of the Japan Patent Office (!1'!i Patent Office) 1. Patent application No. 57-121859 indicating matter (1) 2. Name of the invention Program computer 3 Liaison with the case of the person making the amendment Patent applicant 4. Agent address: @545 22-22 Nagaike-cho, Abeno-ku, Osaka-shi October 26, 1982

Claims (1)

【特許請求の範囲】 1、 コメントとしての文字列及び数値データの組合せ
をプログラムできる計算機に於て、」―記プログラム命
令を記憶するためのプログラム命令記憶用メモリーと、 上記プログラム命令に置換えて新たなコメント情報を入
力するためのコメント情報入力手段と、 」1記コメント情報入力の有無を判別するためのコメン
ト情報入力判別手段と、 該判別手段に応答して上記プログラム命令に置換して若
しくはプログラム命令と共に上記コメント情報入力手段
により入力されたコメント情報を記憶するための出力用
バッファメモリーと、 上記出力用バッファ・メモリーの内容を出力するための
出力装置と、 上記メモリー間の情報の演算・処理を遂行するための演
算制御手段とを備えたことを特徴とするプログラム計算
機。
[Claims] 1. In a computer capable of programming a combination of character strings and numerical data as comments, a comment information input means for inputting comment information; a comment information input determination means for determining whether or not the comment information described in 1 has been input; an output buffer memory for storing comment information inputted by the comment information input means together with instructions; an output device for outputting the contents of the output buffer memory; and arithmetic and processing of information between the memories. A program computer characterized in that it is equipped with an arithmetic control means for carrying out.
JP12185982A 1982-07-12 1982-07-12 Program computer Pending JPS5911449A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP12185982A JPS5911449A (en) 1982-07-12 1982-07-12 Program computer
GB08318784A GB2125589B (en) 1982-07-12 1983-07-12 Programmable calculator
DE19833325153 DE3325153A1 (en) 1982-07-12 1983-07-12 PROGRAMMABLE ELECTRONIC COMPUTER
GB08519131A GB2162976B (en) 1982-07-12 1985-07-10 Programmable calculator
US06/894,741 US4727502A (en) 1982-07-12 1986-08-11 Programmable electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12185982A JPS5911449A (en) 1982-07-12 1982-07-12 Program computer

Publications (1)

Publication Number Publication Date
JPS5911449A true JPS5911449A (en) 1984-01-21

Family

ID=14821695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12185982A Pending JPS5911449A (en) 1982-07-12 1982-07-12 Program computer

Country Status (1)

Country Link
JP (1) JPS5911449A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52135233A (en) * 1976-04-15 1977-11-12 Olivetti & Co Spa Programmable computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52135233A (en) * 1976-04-15 1977-11-12 Olivetti & Co Spa Programmable computer

Similar Documents

Publication Publication Date Title
US4912640A (en) Electronic type memo device
JPH08179817A (en) Display manipulator for machine tool
JPH0312327B2 (en)
JPS5911449A (en) Program computer
GB2162976A (en) Programmable calculator
JP3163627B2 (en) Display device for OHP projector with editing function
US5886910A (en) Computer with a check function
JPS6225213B2 (en)
JP3557645B2 (en) Electronic computer
JPS5924361A (en) Display system of date
JPH0155496B2 (en)
JP2659907B2 (en) Document processing device
JP2600654B2 (en) Document processing device
JPS6113623B2 (en)
JP3031732B2 (en) Image display control device
JPH021627Y2 (en)
JPH0610434Y2 (en) Small electronic calculator
JP2578862B2 (en) Keystroke warning correction method
JPH04151712A (en) Function key input controlling system
JPS6292016A (en) Character processor
JPH01175073A (en) Transaction processor
JPS62260226A (en) Command input method
JPH01100660A (en) Shortening and inputting method for character processor
JPH0193812A (en) System for displaying help screen
JPH0496859A (en) Word processor