JPS62107329A - Document generating device - Google Patents

Document generating device

Info

Publication number
JPS62107329A
JPS62107329A JP60247533A JP24753385A JPS62107329A JP S62107329 A JPS62107329 A JP S62107329A JP 60247533 A JP60247533 A JP 60247533A JP 24753385 A JP24753385 A JP 24753385A JP S62107329 A JPS62107329 A JP S62107329A
Authority
JP
Japan
Prior art keywords
disk
flag
copy
ram
document creation
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
JP60247533A
Other languages
Japanese (ja)
Inventor
Tatsuya Hashimoto
達哉 橋本
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60247533A priority Critical patent/JPS62107329A/en
Publication of JPS62107329A publication Critical patent/JPS62107329A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent a program from running away, and a document in a memory from being cleared, by setting a power source cut-off flag when starting a copy of a floppy disk, and resetting its flag at the time point when the copy has been completed. CONSTITUTION:A CPU 10 checks a status, confirms a fact that a disk has been set, and checks whether a write protection has been set or not. When it is confirmed that the write protection has been set, a power source cut-off flag is set, and a data is read from a source disk, and stored in a RAM 20. Subsequently, the contents of the source disk which has been stored in said RAM 20 are written in a destination disk. In this state, at the time point when a copy operation has been ended, the power source cut-off flag is reset, the RAM is initialized, and a copy routine is ended.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明はフロッピーディスクを有した文書作成装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a document creation device having a floppy disk.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

従来日本語ワードプロセッサ等の文書作成装置等の中に
は外部記憶装置としてフロンビーディスク装置を有した
ものがある。
2. Description of the Related Art Conventionally, some document creation devices such as Japanese word processors have a Freonbie disk device as an external storage device.

このような装置において、例えばディスクコピーを行う
場合、RAM領域をワークエリアとしてリード/ライト
を繰返してコピーを行う。このようなコピー動作を行っ
ているときに、vL#が落ちると、RAM領域は、復旧
するタイミングが今迄無かったので破壊された状態にな
っている。このためプログラムが暴走したシ、判読不能
なデータ等が表示されるという欠点があった。
In such an apparatus, when performing a disk copy, for example, the copy is performed by repeatedly reading/writing the RAM area as a work area. If vL# crashes during such a copy operation, the RAM area is in a destroyed state because there has been no timing to restore it. As a result, there were drawbacks such as programs running out of control and unreadable data being displayed.

このような欠点を解決するために、システムの電源をオ
ンにしたら常にRAM領域を初期化するということも考
え、られるが、その場合、メモリ内の他の文書も無条件
にクリアされてしまうことになり不都合である。
In order to solve this drawback, it is possible to initialize the RAM area whenever the system is turned on, but in that case, other documents in memory will also be cleared unconditionally. This is inconvenient.

〔発明の目的〕[Purpose of the invention]

この発明の目的は上記欠点を除去し、¥L源がしゃ断さ
れたことを認識できたときにのみ、RAM領域を初期化
することのできる文書作成装置を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to eliminate the above drawbacks and provide a document creation device that can initialize the RAM area only when it is recognized that the ¥L source has been cut off.

〔発明の概要〕[Summary of the invention]

この発明の文書作成装置によれば、フロッピーディスク
のコピー開始時(RAFd領域にデータをreadする
直前)に、電源しゃ断フラッグをセットしておき、フロ
ッピーディスクコピーが完全に終了した時点でそのフラ
ッグをリセットする。このフラッグによシ、途中で電源
がしゃ断されたことを認識出来た時のみ、RAM領域を
初期化する。これにより、プログラムの暴走を防止する
ことができ、さらに無条件にメモリ内の文書がクリアさ
れるのを防止することができる。
According to the document creation device of the present invention, a power cutoff flag is set at the start of floppy disk copying (immediately before data is read into the RAFd area), and the flag is turned off when the floppy disk copying is completely completed. Reset. Based on this flag, the RAM area is initialized only when it is recognized that the power has been cut off midway through. This makes it possible to prevent the program from running out of control, and also to prevent documents in the memory from being unconditionally cleared.

〔発明の実施例〕[Embodiments of the invention]

第1図は、この発明の文書作成装置の一実施例としての
日本語ワードプロセッサのブロック構成を示す。10は
装置全体の制御を司る中央処理装置(CPU )である
。12はROMであシ、装置全体を制御するプログラム
、外字作成・修正のだめのプログラム等が格納されてい
るグロダラム領域14を有する。ROM 72は、更に
、装置で扱う漢字を含む文字コードに対応した文字パタ
ーンが登録された文字パターン領域16、および“仮名
”あるいは”ローマ字″で入力された読みを漢字に変換
するための各種辞書が登録された辞書領域ノ8を有する
FIG. 1 shows a block configuration of a Japanese word processor as an embodiment of the document creation device of the present invention. 10 is a central processing unit (CPU) that controls the entire apparatus. Reference numeral 12 is a ROM and has a GLODRAM area 14 in which programs for controlling the entire device, programs for creating and modifying external characters, etc. are stored. The ROM 72 further includes a character pattern area 16 in which character patterns corresponding to character codes including kanji handled by the device are registered, and various dictionaries for converting readings input in "kana" or "romaji" into kanji. It has a dictionary area No. 8 in which are registered.

20dRAMであり、入力された文書の文字コード列を
記憶する文書領域や外字パターンを登録する外字/fタ
ーン領域を有している。
It is a 20 dRAM and has a document area for storing character code strings of input documents and a custom character/f-turn area for registering custom character patterns.

31はキーデートインタフェース(KB −IF )、
33はキー?−ド(K B )である。35は表示コン
トローラ(表示CNT)、37は表示器である。
31 is a key date interface (KB-IF),
Is 33 the key? - (K B ). 35 is a display controller (display CNT), and 37 is a display device.

°表示器37は例えば32(縦)X240(横)ドツト
構成の液晶表示器である。
The display 37 is, for example, a liquid crystal display having a 32 (vertical) x 240 (horizontal) dot configuration.

41はプリンタインタフェース(PRT −IF )、
43はCPU J Oの制御のもとて漢字等の印字を行
うプリンタ(PRT )である。プリンタ43は例えば
24ドツトの印字ヘッドを有する熱転写プリンタでおる
。47は例えば3,5φフロツピーデイスクドライブ、
および45はフロッピーディスクドライブインタフェー
ス(FDD−IFンである。
41 is a printer interface (PRT-IF);
43 is a printer (PRT) that prints kanji characters, etc. under the control of the CPU JO. The printer 43 is, for example, a thermal transfer printer having a 24-dot print head. 47 is, for example, a 3.5φ floppy disk drive,
and 45 is a floppy disk drive interface (FDD-IF).

第2図は、第1図に示したフロッピーディスクドライブ
におけるディスクコピーの制御ルーチンである。ステッ
プ51において、CPU10はステータスをチェックし
、ディスク(この場合ソースディスク)がセットされた
ことを確認する。次にステラf55においてディスク(
ンース7’4スク)に書込み保護がセットされているか
どうかをチェックする。もし書込み保護がセットされて
いなければ、ステラfssにおいて、“書込み保護をセ
ットして下さい”というメツセージを表示器37に表示
する。オペレータはこの表示に従い、3,5φフロツピ
ーデイスクに設けられている書込み保役用のつめを操作
する。この結果、ソースディスクに間違−てデータが書
込まれる恐れはない。ステップ55において書込み保護
がセットされている場合、ステップ56において電源し
ゃ断フラッグをセットする。次に、ステップ57におい
てソースディスクからデータを読み、RAM 20に格
納する。
FIG. 2 shows a control routine for disk copying in the floppy disk drive shown in FIG. In step 51, the CPU 10 checks the status and confirms that the disk (in this case, the source disk) has been set. Next, in Stella F55, the disc (
Check whether write protection is set on the source 7'4. If write protection is not set, the Stellar fss displays a message "Please set write protection" on the display 37. In accordance with this display, the operator operates the write maintenance tab provided on the 3.5φ floppy disk. As a result, there is no possibility that data will be written to the source disk by mistake. If write protection is set in step 55, a power cutoff flag is set in step 56. Next, data is read from the source disk and stored in RAM 20 in step 57 .

次にステップ59において、デスティネーションディス
クが丘ツトされたことを確認する。さらに、ステップ6
3において、デスティネーションディスクに書込み保護
がセットされているかどうかチェックする。書込み保護
がセットされている場合には、ステツf61において”
書込み保護をはずして下さい。′というメツセージを表
示器37に表示する。オ被レータはこのメツセージに従
って、デスティネーションディスクに設けられている書
込み保護用のつめを操作し、書込み保護をリセットし、
FDD47に再セットする。この結果、デスティネーシ
ョンディスクは誉込み可能になる。次にステップ65に
おいて、デスティネーションディスクに、前記RAM 
20に格納されたソースディスクの内容を書込む。次に
ステラ2′67において、コピー動作が終了したかどう
かを判断する。コピー動作が終了してなければ、ステラ
f51に戻り、上述の動作を繰返す。他方コピー動作が
終了した場合には、ステラ7°68において前記電源し
ゃ断フラッグをリセットする。そしてステップ69にお
いてRAMの初期化を行い、コピールーチンを終了する
Next, in step 59, it is confirmed that the destination disk has been lifted. Furthermore, step 6
3, it is checked whether write protection is set on the destination disk. If write protection is set, "in step f61"
Please remove write protection. ' is displayed on the display 37. The destination disk operates the write-protection pawl provided on the destination disk according to this message, resets the write-protection, and
Reset to FDD47. As a result, the destination disc can be engraved. Next, in step 65, the RAM is stored on the destination disk.
Write the contents of the source disk stored in 20. Next, in Stella 2'67, it is determined whether the copying operation has been completed. If the copying operation is not completed, the process returns to Stella f51 and repeats the above-mentioned operation. On the other hand, when the copy operation is completed, the power cutoff flag is reset at Stella 7°68. Then, in step 69, the RAM is initialized, and the copy routine ends.

上述の構成において、コピー動作が終了する前に、すな
わち第2図のステップ57乃至ステラ7°67において
、電源がし中断された場合には、電源フラッグはリセッ
トされないまま残る。
In the above configuration, if the power is interrupted before the copy operation is completed, ie, at steps 57 to 67 in FIG. 2, the power flag remains unreset.

従って、第3図に示す如く、システム電源立上時に電源
しゃ断フラッグがセットされているかどうかを判断し、
セットされていれば、途中で電源がしゃ断されたと判断
し、RAMを初期化する。
Therefore, as shown in Fig. 3, it is determined whether the power cutoff flag is set when the system power is turned on.
If it is set, it is determined that the power was cut off midway through, and the RAM is initialized.

〔発明の効果〕〔Effect of the invention〕

上述したように、この発明の文書作成装置によれば、デ
ィスクコピー時に、前記ディスクを欣む前に電源しゃ断
宍示フラッグをセットする手段と、前記ディスクコピー
の完了時に前記電源しゃ断表示フラッグをリセットする
手段と、前記ディスクコピー中に前記文書作成装置の電
源がし中断された場合、前記電源しゃ断表示フラッグの
セットを検知し、前記メモリをイニシャライズする手段
とを有した構成としたので、プログラムの暴走を避ける
ことができ、又無条件にメモリ内の文書がクリアされる
のを防止することができる。
As described above, the document creation device of the present invention includes means for setting a power cutoff indication flag before the disk is played during disk copying, and resetting the power cutoff indication flag when the disk copying is completed. and a means for detecting the setting of the power cutoff display flag and initializing the memory when the power to the document creation device is interrupted during the disk copying. A runaway can be avoided, and documents in the memory can be prevented from being unconditionally cleared.

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

第1図はこの発明の文書作成装置の一実施例を示すブロ
ック図、第2図は第1図に示したフロッピーディスクの
ドライブにおけるディスクコピ・−の制御ルーチンを示
すフローチャート、および第3図はシステム電源立上時
の制御を示すフローチャートである。 10・・・CPU、12・・・ROM120・・・RA
M、  37・・・表示器、47・・・フロッピーディ
スクドライブ。 出願人代理人  弁理士 鈴 江 武 彦第1図 第3図
FIG. 1 is a block diagram showing an embodiment of the document creation device of the present invention, FIG. 2 is a flowchart showing a disk copy control routine in the floppy disk drive shown in FIG. 1, and FIG. 7 is a flowchart showing control when powering up the system power supply. 10...CPU, 12...ROM120...RA
M, 37...display unit, 47...floppy disk drive. Applicant's representative Patent attorney Takehiko Suzue Figure 1 Figure 3

Claims (1)

【特許請求の範囲】[Claims] フロッピーディスク装置と、前記フロッピーディスク装
置から読込んだデータを格納するメモリとを有した文書
作成装置において、ディスクコピー時に、前記ディスク
を読む前に電源しゃ断表示フラッグをセットする手段と
、前記ディスクコピーの完了時に前記電源しゃ断表示フ
ラッグをリセットする手段と、前記ディスクコピー中に
前記文書作成装置の電源がしゃ断された場合、前記電源
しゃ断表示フラッグのセットを検知し、前記メモリをイ
ニシャライズする手段とを備えたことを特徴とする文書
作成装置。
In a document creation device having a floppy disk device and a memory for storing data read from the floppy disk device, means for setting a power cutoff indicator flag before reading the disk when copying a disk; means for resetting the power cutoff display flag upon completion of the process; and means for detecting the setting of the power cutoff display flag and initializing the memory when the power to the document creation device is cut off during the disk copying. A document creation device comprising:
JP60247533A 1985-11-05 1985-11-05 Document generating device Pending JPS62107329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60247533A JPS62107329A (en) 1985-11-05 1985-11-05 Document generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60247533A JPS62107329A (en) 1985-11-05 1985-11-05 Document generating device

Publications (1)

Publication Number Publication Date
JPS62107329A true JPS62107329A (en) 1987-05-18

Family

ID=17164912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60247533A Pending JPS62107329A (en) 1985-11-05 1985-11-05 Document generating device

Country Status (1)

Country Link
JP (1) JPS62107329A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5178953A (en) * 1974-12-31 1976-07-09 Fujitsu Ltd Dengenshogaijini okeru shorihoshiki
JPS522144A (en) * 1975-06-24 1977-01-08 Hitachi Ltd Memory protecting device
JPS57195396A (en) * 1981-05-26 1982-12-01 Toshiba Corp Data storage control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5178953A (en) * 1974-12-31 1976-07-09 Fujitsu Ltd Dengenshogaijini okeru shorihoshiki
JPS522144A (en) * 1975-06-24 1977-01-08 Hitachi Ltd Memory protecting device
JPS57195396A (en) * 1981-05-26 1982-12-01 Toshiba Corp Data storage control system

Similar Documents

Publication Publication Date Title
US5108206A (en) Document outputting apparatus including means to randomly alter fonts
JPS62107329A (en) Document generating device
JP4491220B2 (en) Small printed matter creating apparatus, small printed matter creating method, and small printed matter creating program
JP2585298B2 (en) Document creation device
JPH0434505B2 (en)
JPS59136852A (en) Preserving method of display and print mode in display and print device
JP2779157B2 (en) Document information processing device
JPS62107353A (en) Write protecting system for floppy disk
JPS6236252B2 (en)
JPH02297214A (en) Document producer
JP2839139B2 (en) Document processing method
JPS62131322A (en) Word processor
JPS62107328A (en) Document generating device
JPS61223881A (en) Character data output unit
JPS60253572A (en) Blank filling printing system
JPH03156670A (en) Document preparing device
JP2554225B2 (en) Text output device
JPS62107370A (en) Document preparing device
JPS637956A (en) Bar code printing control unit
JPH07106666B2 (en) Document creation device
JPS62246769A (en) Printing interruption display and control system
JPS62107330A (en) Access system for floppy disk in document generating device
JPS60103387A (en) Character processor
JPH06236377A (en) Word processor and message display method
JPH04343127A (en) Character processor