JPS6017143B2 - Electronic desk calculator with program - Google Patents

Electronic desk calculator with program

Info

Publication number
JPS6017143B2
JPS6017143B2 JP20086382A JP20086382A JPS6017143B2 JP S6017143 B2 JPS6017143 B2 JP S6017143B2 JP 20086382 A JP20086382 A JP 20086382A JP 20086382 A JP20086382 A JP 20086382A JP S6017143 B2 JPS6017143 B2 JP S6017143B2
Authority
JP
Japan
Prior art keywords
program
command
pause
gate
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP20086382A
Other languages
Japanese (ja)
Other versions
JPS58149554A (en
Inventor
益章 森野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP20086382A priority Critical patent/JPS6017143B2/en
Publication of JPS58149554A publication Critical patent/JPS58149554A/en
Publication of JPS6017143B2 publication Critical patent/JPS6017143B2/en
Expired 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

Landscapes

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

Description

【発明の詳細な説明】 <技術分野> 本発明はプログラム付電子式卓上計算機(以下「プログ
ラム付電卓」という)に関するものであり、特にはプロ
グラム記憶手段に記憶される同一コード化信号に基き実
行される演算処理を、外部操作可能なスイッチング手段
の操作によって切換え制御できるようにしたプログラム
付電卓を提供するものである。
[Detailed Description of the Invention] <Technical Field> The present invention relates to an electronic desktop calculator with a program (hereinafter referred to as a "calculator with a program"), and in particular, a program that executes based on the same coded signal stored in a program storage means. The purpose of the present invention is to provide a programmable calculator in which the calculation processing performed can be switched and controlled by operating an externally operable switching means.

<従来技術> 従来のプログラム付電卓に於ては、プログラム記憶手段
に記憶された命令(コード化信号)に塞き実行される演
算処理は、該命令に1対1に対応して設定されているも
のであった。
<Prior Art> In conventional programmable calculators, the arithmetic processing executed in accordance with the instructions (coded signals) stored in the program storage means is set in one-to-one correspondence with the instructions. It was something that existed.

即ち、プログラム記憶手段に記憶される命令(コード化
信号)と、該命令に塞いて実行される演算処理とは1対
1の対応関係にあり、ある特定の命令がプログラム記憶
手段より導出された時には、該命令に1対1に対応した
特定の演算処理が実行されるものであった。従って、プ
ログラム記憶手段に記憶されたプログラムに基き実行さ
れる演算処理を変更したい場合には、その都度該変更に
合せてプログラムを書き直さねばならないという欠点が
あった。例えば、プログラム付電卓に於て使用される命
令に休止命令がある。休止命令とは、プログラムに基〈
演算処理を所定時間停止させる命令であり、該休止命令
がプログラム記憶手段より読み出された時は、所定時間
プログラムに基く演算処理が停止され、該所定時間経過
後、プログラムの次ステップの実行に進んでいく。この
休止命令は、一般にプログラム実行中の途中経過を表示
させるのに使用されるが、表示の代わりに、途中経過を
印字させたい場合もある。
In other words, there is a one-to-one correspondence between the instructions (coded signals) stored in the program storage means and the arithmetic processing executed in response to the instructions, and a specific instruction is derived from the program storage means. Sometimes, specific arithmetic processing was executed in one-to-one correspondence with the instruction. Therefore, when it is desired to change the arithmetic processing executed based on the program stored in the program storage means, there is a drawback that the program must be rewritten each time in accordance with the change. For example, one of the instructions used in a programmable calculator is a pause instruction. A pause command is a command based on a program.
This is an instruction to stop arithmetic processing for a predetermined period of time, and when the suspension instruction is read from the program storage means, the arithmetic processing based on the program is stopped for a predetermined period of time, and after the predetermined period of time has elapsed, execution of the next step of the program is started. Proceed. This pause command is generally used to display the progress of a program during execution, but there may be cases where it is desired to print the progress of the program instead of displaying it.

このような場合、従来に於ては、プログラムを書き直さ
ねばならなかった。<発明の目的> 本発明は、このような従来のプログラム付電卓に於ける
問題点を解決しようとしてなされたものである。
In such cases, conventionally the program had to be rewritten. <Object of the Invention> The present invention has been made in an attempt to solve the problems of such conventional programmable calculators.

<発明の概要> その基本的な技術思想は以下のとおりである。<Summary of the invention> The basic technical idea is as follows.

即ち、外部操作可能なスイッチング手段を設け、更に該
スイッチング手段の切換え操作に応じて、プログラム記
憶手段より読み出された命令(コード化信号)に基き実
行される処理を切換え制御する回路を設けて、上記スイ
ッチング手段の操作に応じて、プログラム記憶手段より
読み出される命令に基き実行される処理を切換え制御で
きるようにするものである。更に述べるならば、本発明
のプログラム付電卓は、外部操作可能なスイッチング手
段を設け、該外部操作可能なスイッチング手段によって
、プログラム記憶手段より読み出された休止命令にき実
行される処理を、本来の休止処理と印字処理とに切換え
制御できるようにしたことを特徴とするものである。
That is, an externally operable switching means is provided, and a circuit is further provided to switch and control the processing executed based on the command (coded signal) read from the program storage means in response to the switching operation of the switching means. In response to the operation of the switching means, processing to be executed based on instructions read from the program storage means can be switched and controlled. More specifically, the programmable calculator of the present invention is provided with an externally operable switching means, and the externally operable switching means performs a process originally executed in response to a pause command read from the program storage means. The present invention is characterized in that switching control can be performed between pause processing and printing processing.

このような構成とすることにより、上記スイッチング手
段の切り換えのみで、プログラムに組込まれた休止命令
を、本来の休止命令として作用させるか、また印字命令
として作用させるかを選択できるので、上記従来技術の
説明の項で述べたような問題点を解決できるものである
With such a configuration, it is possible to select whether the pause instruction incorporated in the program acts as the original pause instruction or as a print instruction by simply switching the switching means, which eliminates the problem of the prior art described above. This can solve the problems mentioned in the explanation section.

<実施例> 以下、実施例に基づいて本発明を詳細に説明する。<Example> Hereinafter, the present invention will be explained in detail based on Examples.

第1図は第1の実施例に於ける内部回路の概略構成を示
すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an internal circuit in the first embodiment.

図に於て、KBは、数値キー、ファンクションキー等の
キーを含むキーボード、ECは、キーボードKBのキー
が操作されると操作キーに対応するコード化信号を出力
するェンコーダ回路、PRMは上記ェンコーダ回路の出
力信号が順次記憶されるプログラムメモリ、WCはプロ
グラムメモリPRMの書き込み制御回路、ACはPRM
のアドレスレジスタ、ADCはアドレスデコーダ、AD
は「1一如算器、CLCは、プログラムクリアキーPC
Lの操作に基いて、ACの内容を初期状態(PRMの第
1ステップ指定内容)に設定する回路、Gはプログラム
進行信号NEによってオンとなるゲート回路であり、該
ゲート回路Gがオンすると、加算器ADによってアドレ
スレジスタACの内容は「1」カウントアップする。
In the figure, KB is a keyboard that includes keys such as numeric keys and function keys, EC is an encoder circuit that outputs a coded signal corresponding to the operation key when a key on the keyboard KB is operated, and PRM is the encoder described above. A program memory in which circuit output signals are sequentially stored, WC is a write control circuit for the program memory PRM, and AC is a PRM
address register, ADC is address decoder, AD
11, CLC is the program clear key PC
A circuit that sets the contents of AC to the initial state (content specified in the first step of PRM) based on the operation of L, G is a gate circuit that is turned on by the program progress signal NE, and when the gate circuit G is turned on, The contents of address register AC are counted up by "1" by adder AD.

即ち、プログラムの実行が次ステップに進む。ODはプ
ログラムコード解読器、CUは中央制御回路、DLは遅
延回路であり、入力信号が供給されると所定時間経過後
に出力信号を出力する。そして、DKが、プログラムメ
モリPRMに記憶される休止命令を、本釆の休止命令と
して作用させるか、或いは印字命令として作用させるか
を選択するためのキースィツチである。
That is, execution of the program advances to the next step. OD is a program code decoder, CU is a central control circuit, and DL is a delay circuit, which outputs an output signal after a predetermined period of time when an input signal is supplied. The DK is a key switch for selecting whether the pause command stored in the program memory PRM acts as a main button pause command or as a print command.

プログラムメモリPRMには所望のプログラムが記憶さ
れているものとする。
It is assumed that a desired program is stored in the program memory PRM.

つまり、一般制御命令(例えば演算命令)OPS、休止
命令PAUSE、印字命令PRINT、終了命令END
等が入つている。
In other words, general control command (for example, operation command) OPS, pause command PAUSE, print command PRINT, and end command END.
etc. are included.

プログラムをチェックしたり、デバッグしたり、自動実
行したりする前に、まず、プログラムクリアキーPCL
でアドレスレジスタACの内容を第1ステップ指定内容
設定し、プログラム命令をROとして出力する。
Before checking, debugging, or automatically running a program, first press the program clear key PCL.
The contents of the address register AC are set to the first step specification contents, and the program instruction is output as RO.

そしてこれをプログラムコード解読器ODで解読し、一
般制御命令OPSであれば、中央制御回路にUで所定の
制御を実行させて、その終了時にプログラム進行信号N
Eを発生させる。NEが発生するとゲート回路Gがオン
して加算器ADの出力をアドレスレジスタACに帰還す
る。この時ADの2つの入力には、ACの内容と「1」
とが与えられているのでAC+1→AC、即ちACを「
1」カウントアップさせる。それによってプログラムメ
モリの第2ステップが選択されるので、第2ステップの
内容がプログラムコード解読器ODに入力され、ODよ
り所定の制御信号が出、中央制御回路CUで実行される
。このようにプログラム処理をしている過程で、休止命
令をプログラムコード解読器PDで解読した時、もしキ
ースィツチDKがオンされていると、アンドゲートG,
がオンになり、遅延回路DLに入力信号が与えられ、休
止時間経過後DLの出力が出る。
Then, this is decoded by the program code decoder OD, and if it is a general control command OPS, the central control circuit is made to execute a predetermined control at U, and at the end, a program progress signal N is sent.
Generate E. When NE occurs, gate circuit G is turned on and the output of adder AD is fed back to address register AC. At this time, the two inputs of AD are the contents of AC and “1”.
is given, so AC+1→AC, that is, AC is
1” count up. Since the second step of the program memory is thereby selected, the contents of the second step are input to the program code decoder OD, and a predetermined control signal is output from the OD and executed by the central control circuit CU. In the process of program processing, when the pause command is decoded by the program code decoder PD, if the key switch DK is on, the AND gate G,
is turned on, an input signal is given to the delay circuit DL, and the output of DL is output after the pause time has elapsed.

このDLの出力信号にて、前述のゲート回路Gをオンし
て、プログラムを進める。即ち、休止命令本来の動作が
実行される。もし、キースイツチDKがオフとなってい
るならば、アンドゲートG2がオンするもので、印字命
令PRmTが解読された時と同機に、オアゲートG3の
出力が出、これによって所定の印字動作が実行される。
The above-mentioned gate circuit G is turned on by the output signal of this DL, and the program proceeds. That is, the original operation of the pause command is executed. If key switch DK is off, AND gate G2 is turned on, and the output of OR gate G3 is output at the same time as the print command PRmT is decoded, thereby executing the predetermined printing operation. Ru.

以上のようにキースィッチDKの切換え操作によって、
休止命令PAUSEに基き実行される処理を、本来の休
止処理と印字処理とに切換え制御できる。
As mentioned above, by switching the key switch DK,
The process executed based on the pause command PAUSE can be controlled to be switched between the original pause process and printing process.

上記第1の実施例のように、すべての休止命令が、スイ
ッチDKの切換えによって印字命令と同等のものとなる
構成では、休止命令の本来の機能が据われるおそれがあ
る。
In a configuration in which all pause commands become equivalent to print commands by switching the switch DK, as in the first embodiment, there is a risk that the original function of the pause command will be lost.

そこでこの問題を解決する手段として、休止命令として
PAUSEI命令とPAUSED命令の2種を設け、P
AUSEI命令は本来の休止命令、PAUSEロ命令は
スイッチの切換えにより、休止命令と印字命令とに切換
え制御できる命令とすることが考えられる。このように
構成した、第2の実施例を次に説明する。
Therefore, as a means to solve this problem, two types of pause commands are provided, the PAUSEI command and the PAUSED command.
It is conceivable that the AUSEI command is an original pause command, and the PAUSEI command is a command that can be switched between a pause command and a print command by switching a switch. A second embodiment configured in this manner will be described next.

第2図は第2の実施例の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of the second embodiment.

第1の実施例の構成に対応する部分には同一の符号を符
して説明は省略する。プログラムコード解読器ODで印
字命令PRINTが解読された時は、オアゲートG3に
信号が与えられ、オアゲートG3の出力信号によって所
定の印字処理が実行される。
Portions corresponding to the configuration of the first embodiment are denoted by the same reference numerals, and a description thereof will be omitted. When the print command PRINT is decoded by the program code decoder OD, a signal is applied to the OR gate G3, and a predetermined print process is executed based on the output signal of the OR gate G3.

また休止命令PAUSEIが解読された時はオアゲート
G4を介して遅延回路DLに入力信号が与えられ、所定
時間後にDLの出力信号が出、該信号によってゲート回
路Gがオンされるので休止処理が実行される。次に休止
命令PAUSEロが解読された時について説明する。
Also, when the pause command PAUSEI is decoded, an input signal is given to the delay circuit DL via the OR gate G4, and after a predetermined time, an output signal from DL is output, and this signal turns on the gate circuit G, so that the pause process is executed. be done. Next, a description will be given of when the pause command PAUSE is decoded.

この時スイッチDKがオンとなっていればアンドゲート
G,がオンとなっており、アンドゲートG,の出力信号
がオアゲートG4を介して遅延回路DLに与えられるの
で、休止処理が実行される。一方スイッチDKがオフで
あればアンドゲートG2がオンとなり、アンドゲートG
2が出力信号を出し、この信号がオアゲートG3に与え
られるので印字処理が実行される。<効 果> 以上詳細に説明したように、本発明のプログラム付電卓
は、外部操作可能なスイッチング手段と、該スイッチン
グ手段の操作に応じて、プログラム記憶手段より読み出
された休止命令に基づき実行される処理を、休止処理と
印字処理とに切り換え制御する手段とを設けたことを特
徴とするものであるから、上記スイッチング手段による
切り換え操作だけで、途中経過を表示させる場合と印字
させる場合とを選択することができ、従来に於けるよう
なプログラムの書き換え等が全く不要となる、きわめて
有用なプログラム付電卓を得ることができるものである
At this time, if the switch DK is on, the AND gate G is on, and the output signal of the AND gate G is applied to the delay circuit DL via the OR gate G4, so that the pause process is executed. On the other hand, if switch DK is off, AND gate G2 is on, and AND gate G
2 outputs an output signal, and this signal is applied to OR gate G3, so that printing processing is executed. <Effects> As described in detail above, the programmable calculator of the present invention includes an externally operable switching means and an execution function based on a pause command read from the program storage means in response to the operation of the switching means. Since the present invention is characterized in that it is provided with a means for controlling switching of the processing to be performed between the pause processing and the print processing, it is possible to display the intermediate progress and to print it by simply switching the processing by the switching means. This makes it possible to obtain an extremely useful calculator with a program, which eliminates the need to rewrite programs as in the past.

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

第1図は本発明の第1の実施例の構成を示すブロック図
、第2図は本発明の第2の実施例の構成を示すブロック
図である。 符号、KB:キーボード、EC:ェンコーダ回路、PR
M:プログラムメモリ、WC:プログラムメモリPRM
書き込み制御回路、AC:アドレスレジスタ、AD:加
算器、ADC:アドレスデコーダ、G:ゲート回路、O
D:フ。 。グラムコード解読器、CU:中央制御回路、DK:キ
ースィッチ、○,,G2:アンドゲート、G3,G4:
オアゲート、DL:遅延回路、NE:プログラム進行信
号。第1図第2図
FIG. 1 is a block diagram showing the structure of a first embodiment of the invention, and FIG. 2 is a block diagram showing the structure of a second embodiment of the invention. Code, KB: Keyboard, EC: Encoder circuit, PR
M: Program memory, WC: Program memory PRM
Write control circuit, AC: address register, AD: adder, ADC: address decoder, G: gate circuit, O
D: Huh. . Gram code decoder, CU: central control circuit, DK: key switch, ○,, G2: AND gate, G3, G4:
OR gate, DL: delay circuit, NE: program progress signal. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 1 休止命令入力キーを有するプログラム付電子式卓上
計算機に於て、 外部操作可能なスイツチング手段と、
該スイツチング手段の操作に基づき、プログラム記憶手
段より読み出された上記休止命令に基づき実行される処
理を、休止処理と印字処理とに切り換え制御する手段と
を設けたことを特徴とするプログラム付電子式卓上計算
機。
1. In a programmed electronic desktop calculator having a pause command input key, an externally operable switching means;
An electronic device with a program, characterized in that it is provided with means for controlling the switching of the processing to be executed based on the suspension command read from the program storage means to suspension processing and printing processing based on the operation of the switching means. Formula desktop calculator.
JP20086382A 1982-11-15 1982-11-15 Electronic desk calculator with program Expired JPS6017143B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20086382A JPS6017143B2 (en) 1982-11-15 1982-11-15 Electronic desk calculator with program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20086382A JPS6017143B2 (en) 1982-11-15 1982-11-15 Electronic desk calculator with program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP52092410A Division JPS6015988B2 (en) 1977-07-29 1977-07-29 Electronic desk calculator with program

Publications (2)

Publication Number Publication Date
JPS58149554A JPS58149554A (en) 1983-09-05
JPS6017143B2 true JPS6017143B2 (en) 1985-05-01

Family

ID=16431473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20086382A Expired JPS6017143B2 (en) 1982-11-15 1982-11-15 Electronic desk calculator with program

Country Status (1)

Country Link
JP (1) JPS6017143B2 (en)

Also Published As

Publication number Publication date
JPS58149554A (en) 1983-09-05

Similar Documents

Publication Publication Date Title
JPS5849881B2 (en) Data search
US4095268A (en) System for stopping and restarting the operation of a data processor
JPS6017143B2 (en) Electronic desk calculator with program
JPS63822B2 (en)
JPS6015988B2 (en) Electronic desk calculator with program
JPS6019538B2 (en) Program writing method
JPS5830613B2 (en) Voice calculator with program
JPS6338732B2 (en)
JPH045217B2 (en)
JPS6348698A (en) Memory storage control device
JPS63159905A (en) Forcible on/off system for input/output of programmable controller
JPS58225403A (en) Programmable controller
JPS6037943B2 (en) Small electronic calculator with program
JPS5828272Y2 (en) Computer debugging device
JPH0552961B2 (en)
JPS6129956A (en) Memory control unit
JPS6380333A (en) Microcomputer circuit
JPH01151096A (en) Method for refreshing dynamic memory
JPH0695710A (en) Method for changing sequence program of programmable controller
JPS5818647B2 (en) key
JPH0454531A (en) Program reading circuit
JPH05165444A (en) Picture processing system using cd
JPH07306782A (en) Device and method processor control
JPH10340209A (en) Data processor
JPH1185223A (en) Programmable controller