JPH067394Y2 - Programmable small electronic calculator - Google Patents

Programmable small electronic calculator

Info

Publication number
JPH067394Y2
JPH067394Y2 JP1987071751U JP7175187U JPH067394Y2 JP H067394 Y2 JPH067394 Y2 JP H067394Y2 JP 1987071751 U JP1987071751 U JP 1987071751U JP 7175187 U JP7175187 U JP 7175187U JP H067394 Y2 JPH067394 Y2 JP H067394Y2
Authority
JP
Japan
Prior art keywords
program
data
area
selecting
written
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 - Lifetime
Application number
JP1987071751U
Other languages
Japanese (ja)
Other versions
JPS63183661U (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.)
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 JP1987071751U priority Critical patent/JPH067394Y2/en
Publication of JPS63183661U publication Critical patent/JPS63183661U/ja
Application granted granted Critical
Publication of JPH067394Y2 publication Critical patent/JPH067394Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【考案の詳細な説明】 [考案の技術分野] この考案は、プログラマブル小型電子式計算機に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a programmable compact electronic computer.

[従来技術およびその問題点] 従来、ポケットコンピュータと呼ばれるプログラマブル
小型電子式計算機においては、製品を出荷する前に顧客
先の業務に合った専用プログラム(例えば科学計算用、
金融計算用のプログラム)を外部メモリ(ROM)から
内部メモリ(RAM)に転送し、専用機として出荷する
ようにしていた。この場合、外部メモリに記憶した専用
プログラムに誤りがあったときや業務の発展変化に対応
してその一部を変更、改善するようなときであっても、
外部メモリにおいてはその記憶内容を書き換えることが
できない為、新たなプログラムを作成して別個の外部メ
モリを用意しなければならなかった。
[Prior Art and its Problems] Conventionally, in a programmable small-sized electronic computer called a pocket computer, a dedicated program (for scientific calculation, for example) suitable for a customer's business before shipping a product.
A program for financial calculation was transferred from an external memory (ROM) to an internal memory (RAM) and shipped as a dedicated machine. In this case, even when there is an error in the dedicated program stored in the external memory, or when part of it is changed or improved in response to changes in business development,
Since the stored contents cannot be rewritten in the external memory, it was necessary to create a new program and prepare a separate external memory.

[考案の目的] この考案は上述した事情を背景になされたもので、その
目的とするところは、プログラムが間違っていた場合、
後で正しいプログラムに修正した修正プログラムを新た
に書き込むことができると共に、誤りのあるプログラム
を無視して正しく修正されたプログラムを読み出すこと
ができるプログラマブル小型電子式計算機を提供するこ
とにある。
[Purpose of Invention] This invention was made in the background of the above-mentioned circumstances. The purpose of this invention is to
It is an object of the present invention to provide a programmable small-sized electronic computer that can write a corrected program newly to a correct program later and can read a correctly corrected program while ignoring an erroneous program.

[考案の要点] この考案は上述した目的を達成する為に、プログラムを
記憶するプログラムメモリを書き込み可能な不揮発性メ
モリによって構成すると共に、修正プログラム等を書き
込み可能な空エリアを設け、この空エリア内に新たに書
き込まれた修正プログラム等を既に記憶されているプロ
グラムよりも優先して読み出すようにしたことを要旨と
するものである。
[Summary of the Invention] In order to achieve the above-mentioned object, the invention is configured such that a program memory for storing a program is composed of a writable nonvolatile memory, and an empty area in which a correction program and the like can be written is provided. The gist is that the correction program and the like newly written therein is read out prior to the already stored program.

[実施例] 以下、この考案を図面に示す一実施例に基づいて具体的
に説明する。
[Embodiment] Hereinafter, the present invention will be specifically described based on an embodiment shown in the drawings.

構成 第1図はこの考案を適用したポケットコンピュータの外
観図である。図中1はコンピュータ本体で、このコンピ
ュータ本体1には見開き部2が連結部JTを介して開閉
可能に形成されている。そして、コンピュータ本体1の
上面にはアルファベットキーAK、置換キーBK等が配
設され、また見開き部2の内面には、ドットマトリック
ス型の液晶表示パネルDPが設けられていると共に、1
0種類のプログラムP(0)〜P(9)のうち対応する
プログラムの実行を指定するプログラムキーPKが設け
られている。なお、上記10種類のプログラムはコンピ
ュータ本体1の外部からROMカード3によって供給さ
れたものである。
Structure FIG. 1 is an external view of a pocket computer to which the present invention is applied. In the figure, reference numeral 1 denotes a computer main body, and a spread part 2 is formed on the computer main body 1 so as to be openable and closable via a connecting portion JT. Further, alphabet keys AK, substitution keys BK, etc. are arranged on the upper surface of the computer main body 1, and a dot matrix type liquid crystal display panel DP is provided on the inner surface of the spread part 2, and
A program key PK for designating the execution of the corresponding program among the 0 kinds of programs P (0) to P (9) is provided. The ten types of programs are supplied from the outside of the computer body 1 by the ROM card 3.

第2図はこのポケットコンピュータの基本的な構成を示
すブロック回路図である。このコンピュータは専用機と
して出荷される際に、コンピュータ本体1の外部接続端
子(図示せず)にROMカード3を電気的に接続し、こ
のROMカード3に記憶されているプログラムがCPU
11の制御下で内部メモリであるRAM12に転送され
る。このRAM12内に記憶された複数のプログラムは
対応するプログラムキーPKが操作された際にキー入力
部13から出力されるプログラム実行指令に応答してR
AM12から選択的に読み出されて実行される。そし
て、プログラム実行結果等は、上記液晶表示パネルDP
を備えた表示部14に送られ、表示される。なお、上記
RAM12は図示しないバックアップ用の電源により常
時パックアップされており、コンピュータ本体1のパワ
ースイッチをオフしてもメモリの内容は保持されてい
る。
FIG. 2 is a block circuit diagram showing the basic configuration of this pocket computer. When this computer is shipped as a dedicated machine, the ROM card 3 is electrically connected to an external connection terminal (not shown) of the computer body 1, and the program stored in this ROM card 3 is stored in the CPU.
Under the control of 11, the data is transferred to the RAM 12 which is an internal memory. The plurality of programs stored in the RAM 12 are R in response to the program execution command output from the key input unit 13 when the corresponding program key PK is operated.
It is selectively read from the AM 12 and executed. The program execution result and the like are displayed on the liquid crystal display panel DP.
Is sent to and displayed on the display unit 14 provided with. The RAM 12 is always packed up by a backup power supply (not shown), and the contents of the memory are retained even when the power switch of the computer main body 1 is turned off.

次に、第3図を参照してROMカード3の構成について
説明する。ROMカード3は、書き込み可能な不揮発性
メモリ、具体的には一度だけ書き込み可能なOTP R
OM(One Time Programable ROM)によって構成されて
いる。そして、ROMカード3内には複数のプログラム
が記憶されているプログラムエリアPGMと、このプロ
グラムエリアPGM内の各プログラムを指定する為のプ
ログラム指定データが記憶されているプログラム管理エ
リア(ディレクトリエリア)DIRが設けられている。
また、プログラムエリアPGMには修正プログラム等は
書き込まれるプログラム用空エリアPSAが設けられ、
また、ディレクトリエリアDIR内にはプログラム用空
エリアPSAに書き込まれた修正プログラム等のプログ
ラム指定データが記憶されるディレクトリ用空エリアD
SAが設けられている。なお、プログラムエリアPG
M、ディレクトリエリアDIRおよび各空エリアPS
A,DSAの大きさは相対的なものであってROMカー
ド3に記憶されているプログラム数に応じて可変する。
Next, the configuration of the ROM card 3 will be described with reference to FIG. The ROM card 3 is a writable non-volatile memory, specifically, an OTP R that can be written only once.
It is composed of OM (One Time Programmable ROM). A program area PGM in which a plurality of programs are stored in the ROM card 3 and a program management area (directory area) DIR in which program designation data for designating each program in the program area PGM are stored Is provided.
Further, the program area PGM is provided with a program empty area PSA in which a correction program and the like are written,
In the directory area DIR, the directory empty area D in which program designating data such as the correction program written in the program empty area PSA is stored.
SA is provided. The program area PG
M, directory area DIR and empty areas PS
The sizes of A and DSA are relative and can be changed according to the number of programs stored in the ROM card 3.

第4図はディレクトリエリアDIRに記憶されているプ
ログラム指定データを示している。このプログラム指定
データは、対応するプログラムのファイル名と、プログ
ラムエリアPGMに対応するプログラムが記憶されてい
る領域の開始アドレスを示すファイルトップアドレスと
当該領域の終了アドレスを示すファイルエンドアドレス
とによって構成されている。
FIG. 4 shows the program designation data stored in the directory area DIR. The program designation data is composed of the file name of the corresponding program, the file top address indicating the start address of the area where the program corresponding to the program area PGM is stored, and the file end address indicating the end address of the area. ing.

動作 いま、ROMカード3のプログラムエリアPGMにはそ
の先頭から6種類にプログラムがP(0),P(1),
P(4),P(7),P(5),P(8)の順で書き込
まれているものとする。この場合、ROMカード3のデ
ィレクトリエリアDIRには、第3図に示すように、そ
のプログラム指定データがディレクトリエリアDIRの
後(DIR END)から順に書き込まれている。即
ち、ROMカード3には各プログラムが順方向に順次書
き込まれ、またそのプログラム指定データは逆方向に順
次書き込まれている。
Operation Now, in the program area PGM of the ROM card 3, there are six types of programs P (0), P (1),
It is assumed that P (4), P (7), P (5), and P (8) are written in this order. In this case, as shown in FIG. 3, the program designation data is written in the directory area DIR of the ROM card 3 in order from after the directory area DIR (DIR END). That is, each program is sequentially written in the ROM card 3 in the forward direction, and the program designation data is sequentially written in the reverse direction.

ここで、例えば、プログラムP(5)に誤りがあった場
合、ROMカード3にその修正プログラムP(5″)を
書き込むと、修正プログラムP(5″)は第5図に示す
ようにプログラム用空エリアPSAの先頭から書き込ま
れる。この結果、修正プログラムP(5″)は既に書き
込まれているプログラムP(8)の次に書き込まれるこ
とになる。この時、プログラム用空エリアPSAに書き
込まれた修正プログラムP(5″)のファイルトップア
ドレスP(5″)TOPと、ファイルエンドアドレスP
(5″)ENDがそのファイル名と共にそのプログラム
指定データとしてディレクトリ用空エリアDSAの最後
に書き込まれる(第5図参照)。
Here, for example, when the program P (5) has an error and the correction program P (5 ″) is written in the ROM card 3, the correction program P (5 ″) is used for the program as shown in FIG. It is written from the beginning of the empty area PSA. As a result, the correction program P (5 ″) is written next to the already written program P (8). At this time, the correction program P (5 ″) written in the program empty area PSA is written. File top address P (5 ″) TOP and file end address P
(5 ″) END is written at the end of the directory empty area DSA as the program designation data together with the file name (see FIG. 5).

この状態において、ROMカード3内のプログラムをコ
ンピュータ本体1内のRAM12に転送する場合には、
ROMカード3をコンピュータ本体1に接続し、そして
プログラムキーPKを操作する。すると、プログラムキ
ーPKが操作される毎に第6図に示すフローチャートに
したがった動作が実行される。
In this state, when transferring the program in the ROM card 3 to the RAM 12 in the computer main body 1,
The ROM card 3 is connected to the computer main body 1 and the program key PK is operated. Then, every time the program key PK is operated, the operation according to the flowchart shown in FIG. 6 is executed.

いま、ROMカード3からプログラムP(0)〜P
(8)をRAM12に転送し、プログラムP(0)〜P
(8)をプログラムキーPKの に対応して設定するものとする。ここで、先ず、 のプログラムキーPKを操作すると、ディレクトリエリ
アDIRからプログラムP(0)に対応するプログラム
指定データを検索する処理が実行される(ステップS
1)。この場合、CPU11はディレクトリエリアDI
R内をその先頭(DIR TOP)から順方向、即ち、
プログラムP(5″),9(8),……P(1),P
(0)の順にその指定データを順次サーチしてゆき(ス
テップS2,S3)、これによって、該当するプログラ
ム指定データを検索すると、そのファイルトップアドレ
スによってプログラムデリアPGMを指定し、このファ
イルトップアドレスからファイルエンドアドレスまでの
プログラムP(0)をプログラムエリアPGMから順次
読み出し、RMA12に転送する(ステップS4)。
Now, from the ROM card 3, the programs P (0) -P
(8) is transferred to the RAM 12, and the programs P (0) to P (P)
(8) of the program key PK Shall be set according to. Here, first When the program key PK of is operated, a process for searching the directory area DIR for the program designation data corresponding to the program P (0) is executed (step S
1). In this case, the CPU 11 uses the directory area DI
In the R direction from the beginning (DIR TOP), that is,
Program P (5 ″), 9 (8), ... P (1), P
The designated data is sequentially searched in the order of (0) (steps S2 and S3), and when the corresponding program designated data is searched by this, the program delia PGM is designated by the file top address, and from this file top address The program P (0) up to the file end address is sequentially read from the program area PGM and transferred to the RMA 12 (step S4).

しかして、 のプログラムキーPKが操作された場合においても上述
の動作が実行され、ディレクトリエリアDIR内がその
先頭(DIR TOP)からサーチされる結果、修正プ
ログラムP(5″)が誤りのあるプログラムP(5)に
優先してサーチされ、この修正プログラムP(5″)が
ROMカード3から読み出されてRAM12に転送され
る。即ち、誤りのあるプログラムP(5)は無視され、
正しく修正されたプログラムP(5″)が転送される。
Then, Even when the program key PK is operated, the above-described operation is executed and the directory area DIR is searched from the top (DIR TOP). As a result, the correction program P (5 ″) has an error in the program P (5 ), The correction program P (5 ″) is read from the ROM card 3 and transferred to the RAM 12. That is, the erroneous program P (5) is ignored,
The correctly modified program P (5 ″) is transferred.

なお、上記実施例においては、ポケットコンピュータを
専用機として出荷する場合におけるプログラム転送につ
いて説明したが、ユーザサイドでオプションとして用意
されているROMカード3をコンピュータ本体1に接続
し、このROMカード3内のプログラムを実行する場合
においても同様である。
Although the program transfer in the case where the pocket computer is shipped as a dedicated machine has been described in the above embodiment, the ROM card 3 prepared as an option on the user side is connected to the computer main body 1 and the ROM card 3 is stored in the ROM card 3. The same applies when executing the program.

また、上記実施例においては書き込み可能な不揮発性メ
モリとして上述したOTP ROMを用いたが、ヒュー
ズROM等であってもよい。
Further, in the above-described embodiment, the OTP ROM described above is used as the writable nonvolatile memory, but a fuse ROM or the like may be used.

[考案の効果] この考案は、以上詳細に説明したように、プログラムを
記憶するプログラムメモリを書き込み可能な不揮発性メ
モリによって構成すると共に修正プログラム等を書き込
み可能な空エリアを設け、この空エリア内に新たに書き
込まれた修正プログラムを既に記憶されているプログラ
ムよりも優先して読み出すようにしたから、メモリ内に
記憶されているプログラムが間違っていた場合であって
も後で正しいプログラムに修正した修正プログラムを書
き込むことができると共に、誤りのあるプログラムを無
視して常に正しいプログラムを読み出すことができる等
の効果を有する。
[Advantage of the Invention] As described in detail above, the present invention is configured such that a program memory for storing a program is composed of a writable non-volatile memory and an empty area in which a correction program and the like can be written is provided. Since the newly written correction program is read prior to the already stored program, even if the program stored in the memory is wrong, it is corrected to the correct program later. It is possible to write a correction program, and it is possible to always read a correct program while ignoring an erroneous program.

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

図面はこの考案の一実施例を示し、第1図はこの考案が
適用したポケットコンピュータの外観図、第2図はこの
基本的な構成を示すブロック回路図、第3図は第2図で
示したROMカード3の構成図、第4図はROMカード
3のディレクトリエリアDIRに記憶されるプログラム
指定データを説明する為の図、第5図は修正プログラム
がROMカード3に書き込まれた状態を示す図、第6図
はこの実施例の動作を示すフローチャートである。 1……コンピュータ本体、3……ROMカード、11…
…CPU、12……RAM、PGM……プログラムエリ
ア、DIR……ディレクトリエリア、PSA……プログ
ラム用空エリア、DSA……ディレクトリ用空エリア。
FIG. 1 shows an embodiment of the present invention, FIG. 1 is an external view of a pocket computer to which the present invention is applied, FIG. 2 is a block circuit diagram showing the basic structure, and FIG. 3 is shown in FIG. FIG. 4 is a configuration diagram of the ROM card 3, FIG. 4 is a diagram for explaining program designation data stored in the directory area DIR of the ROM card 3, and FIG. 5 is a state in which the correction program is written in the ROM card 3. FIG. 6 and FIG. 6 are flowcharts showing the operation of this embodiment. 1 ... Computer body, 3 ... ROM card, 11 ...
... CPU, 12 ... RAM, PGM ... program area, DIR ... directory area, PSA ... program empty area, DSA ... directory empty area.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】複数のプログラム夫々のプログラムデータ
を記憶するプログラムエリア及び前記複数のプログラム
夫々に対応するプログラムデータを夫々指定するプログ
ラム指定データを記憶するプログラム管理エリアが設け
られた不揮発性のプログラムメモリと、 プログラムデータを前記プログラムエリアに書込み且つ
対応するプログラム指定データを前記プログラム管理エ
リアの一端側から順次書込むプログラム書込手段と、 前記プログラムメモリに書込まれた複数のプログラムの
うちの一つを選択するプログラム選択手段と、 このプログラム選択手段によって選択されたプログラム
のプログラム指定データを前記プログラム管理エリアの
他端側から順次検索する検索手段と、 この検索手段によって前記プログラム選択手段により選
択されたプログラムのプログラム指定データが検索され
た際に対応するプログラムデータを前記プログラムエリ
アから読み出す読出制御手段と、 を備え、新たに書込まれたプログラムを既に記憶されて
いるプログラムに優先して読み出すようにしてなること
を特徴とするプログラマブル小型電子式計算機。
1. A non-volatile program memory having a program area for storing program data of each of a plurality of programs and a program management area for storing program designation data for designating program data corresponding to each of the plurality of programs. A program writing means for writing program data in the program area and sequentially writing corresponding program designation data from one end side of the program management area; and one of a plurality of programs written in the program memory. A program selecting means for selecting the program selection data, a searching means for sequentially searching the program designation data of the program selected by the program selecting means from the other end side of the program management area, and a searching means for selecting the program selecting data by the program selecting means. Read control means for reading out the corresponding program data from the program area when the program designation data of the stored program is retrieved, and the newly written program is read in preference to the already stored program. A programmable compact electronic computer characterized by the above.
JP1987071751U 1987-05-15 1987-05-15 Programmable small electronic calculator Expired - Lifetime JPH067394Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987071751U JPH067394Y2 (en) 1987-05-15 1987-05-15 Programmable small electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987071751U JPH067394Y2 (en) 1987-05-15 1987-05-15 Programmable small electronic calculator

Publications (2)

Publication Number Publication Date
JPS63183661U JPS63183661U (en) 1988-11-25
JPH067394Y2 true JPH067394Y2 (en) 1994-02-23

Family

ID=30914590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987071751U Expired - Lifetime JPH067394Y2 (en) 1987-05-15 1987-05-15 Programmable small electronic calculator

Country Status (1)

Country Link
JP (1) JPH067394Y2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58168164A (en) * 1982-03-30 1983-10-04 Fujitsu Ltd Forming method of sectional editing file
JPS5999543A (en) * 1982-11-29 1984-06-08 Fujitsu Ltd Correction system for program
JPS6254334A (en) * 1985-09-03 1987-03-10 Nec Corp Portable computer

Also Published As

Publication number Publication date
JPS63183661U (en) 1988-11-25

Similar Documents

Publication Publication Date Title
JPH01183729A (en) Printer containing automatic initializing function of memory
JPH02147277A (en) Printing apparatus
JPS6122817B2 (en)
JPH067394Y2 (en) Programmable small electronic calculator
JPS5848932B2 (en) Memory expansion method
JPH03158184A (en) Sewing machine operated according to control program
JPH0776895B2 (en) Small portable devices
JP2000172917A (en) Controller for vending machine
JPH02151921A (en) Table data display device and table data storage device
JPH04152488A (en) Ic card
JPH0532863Y2 (en)
JPH01103720A (en) Key input device
JP2961781B2 (en) Data processing device
JPH0261897A (en) Prom writer
JP2739790B2 (en) Disk file access control method
JPH0268624A (en) Program correcting circuit
JPH04137136A (en) Program storage system
JPH08339209A (en) Display device for programmable controller and display information writing method
JPH02170296A (en) Pos terminal
JPS6046747B2 (en) Initial program loading method
JPS6144339B2 (en)
JPH1145580A (en) Memory writer tool
JPS6362017A (en) Data processor
JPH01131927A (en) Program correcting method
JPH0744453A (en) Data storage device