JPS62139183A - Generation method for control program corresponding to various kinds of floppy disk format - Google Patents
Generation method for control program corresponding to various kinds of floppy disk formatInfo
- Publication number
- JPS62139183A JPS62139183A JP27985785A JP27985785A JPS62139183A JP S62139183 A JPS62139183 A JP S62139183A JP 27985785 A JP27985785 A JP 27985785A JP 27985785 A JP27985785 A JP 27985785A JP S62139183 A JPS62139183 A JP S62139183A
- Authority
- JP
- Japan
- Prior art keywords
- format
- disk
- program
- control program
- sector
- 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
Links
Abstract
Description
この発明はフロッピディスクのフォーマツティング(予
めディスクにセクタの境界データとしてのID番号を書
込みセクタ枠を作ること)及びディスクの読み書きを行
うソフトエア(以下フロッピディスク制御プログラムと
いう)の作成方法に関する。The present invention relates to a method for formatting a floppy disk (preparing an ID number as sector boundary data on the disk to create a sector frame) and creating software (hereinafter referred to as a floppy disk control program) for reading and writing on the disk.
この種のフロッピディスク制御プログラムとしては一般
に、採用を決定した特定の数種類のディスクフォーマッ
トを対象として特定の制御プログラムを作成するという
方法が用いられている。ところがこのような方法ではデ
ィスクフォーマットの相異を示す情報項目を処理する統
一した方法を用いていないゆえに、一度その特定のディ
スクフオーマット用に制御プログラムが作成されてしま
えば対応したいフォーマットの追加、変更が困難であり
、また多種類のディスクフォーマットに一度に対応でき
る制御プログラムの作成が困難であるという欠点があっ
た。This type of floppy disk control program generally uses a method in which a specific control program is created for several specific types of disk formats that have been decided to be adopted. However, since this method does not use a unified method for processing information items that indicate differences in disk formats, once a control program has been created for that particular disk format, it is easy to add or change the format that you want to support. However, it is difficult to create a control program that can handle many types of disc formats at once.
この発明は前記の欠点を除去し、近年の種々の種類のフ
ロンビディスクの普及に適応すべく、対応するディスク
フォーマットの追加、変更と多種類のディスクフォーマ
ットに一度に対応することが容易であり、しかも、ディ
スク制御プログラムの変更なく、フォーマットテーブル
の作成だけで対応ディスクフォーマットを生成、追加す
る方法を用いることにより、対応の容易性だけでなく、
作成の容易性と高い信顛性を持つフロッピディスク制御
プログラムの作成方法を提供することを目的とする。The present invention eliminates the above-mentioned drawbacks, and in order to adapt to the recent spread of various types of discs, it is easy to add and change compatible disc formats and to support multiple types of disc formats at once. Moreover, by using a method that creates and adds compatible disk formats simply by creating a format table without changing the disk control program, it is not only easy to handle, but also
The purpose of this invention is to provide a method for creating a floppy disk control program that is easy to create and has high reliability.
この発明の要点はフロンピディスクの制御プログラムを
作成するに際して、ディスクフォーマットの相異が関係
する処理を、その相異を知らずとも行うことができるの
に必要なサブプログラム群(即ちフォーマット情報管理
プログラム)を設け、前記制御プログラムをこのサブプ
ログラム群を用いて作成することにより、前記制御プロ
グラムをディスクフォーマットに対して不変とし、さら
に、フォーマット情報管理プログラムの処理に必要なデ
ィスクフォーマットの情報項目を設定した所定形式のテ
ーブル(即ちフォーマットテーブル)を設け、ディスク
フォーマットの相異を示す情報項目の隠蔽された前記の
サブプログラム群にフォーマットテーブルのデータを入
力して動作可能な最終のサブプログラム群とするように
してフォーマットテーブルを交換するだけで、対応可能
なディスクフォーマットの種類を増やすことができるよ
うにした点にある。The main point of this invention is that when creating a control program for a floppy disk, a group of subprograms (i.e., a format information management program ), and by creating the control program using this subprogram group, the control program is made invariant to the disk format, and furthermore, information items of the disk format necessary for processing the format information management program are set. A table (that is, a format table) in a predetermined format is provided, and the data of the format table is inputted into the subprogram group in which the information items indicating the difference in disk format are hidden to form a final operable subprogram group. In this way, the number of compatible disk formats can be increased simply by exchanging the format table.
以下第1図〜第4図に基づいて本発明の詳細な説明する
。なお各図において同一の符号は同一または相当部分を
示す。
フォーマット情報管理プログラムは以下のサブプログラ
ムa〜1から成る。以下シリンダ番号をC,ヘッド番号
をHD 、セクタ番号をS、セクタ数をCNTS、デー
タ長(バイト数)をDTLと゛も表現する。またく 〉
内の数字は各プログラムが隠蔽している後述の情報項目
を示す。
サブプログラムa (セクタチェック):指定されたC
、HD、S、CNTSが、対象とするディスクフォーマ
ットにおいて正しいか否かをチェックするプログラムー
−−−−−−−−<■、■、■、■〉。
サブプログラムb:与えられたC、HDからHDに1を
加えた時の新たなC,HDを求めるプログラム −・・
・・・・・−・ く■〉。
サブプログラムC:与えられたC、 HD、 SからS
にCNTSを加えた時の新たなC,HD、 Sを求める
プログラム・−・−<■、■、■〉。
サブプログラムd:与えられたC、 HD、 Sから、
そのセクタを含んでそのシリンダの最後のセクタまでの
CNTSを求めるプログラムーーーーーーーー・−く■
、 ■、 ■〉 。
サブプログラムe:与えられたC、 HD、 Sから
、そのセクタを含んでそのトラックの最後のセクタまで
のCNTSを求めるプログラムー−−一−−−−−く■
、 ■〉 。
サブプログラムf:与えられたC、 HD、 DTLか
らDTL分のCNTSを求めるプログラムー−・・−・
−・ く■、 ■〉 。
サブプログラムg:与えられたC、 HD、 CNTS
からCN73分のDTLを求めるプログラム−−−−−
−−−−<■、 ■) 。
サブプログラムh:フォーマットテーブル中のシリンダ
数より最大シリンダ番号を定めるプログラム。
サブプログラムミニフォーマツティング用のIDパター
ン(ID番号のテーブル)を作成するプログラムーー・
−・−く■、■、■、■〉。
ここで前記の〈 )内のΦ〜■で示される情報項目は、
以下を意味する。
■二片面1両面という取扱い面の相異。
■:単重書倍密という記録密度の相異。
■:128バイト、256ハイト、512ハイド、10
24バイトというセクタ当りのバイト数(−セクタ長)
。
■:トラソク当りのセクタ数。
■ニジリンダ数。
■:記録密度とセクタ長が全トラック同一か。
或いはIBMのディスクフォーマットかというディスク
フォーマットの相異。
前記サブプログラムa −iにより、■を除く■〜■の
情報項目が隠蔽される。■については、フォーマツティ
ングや読み書きの操作時に用いられるものとする。ここ
で説明の都合上、仮に以下のようなフロンピディスク制
御プログラム中の基本操作プログラム(単に操作ともい
う)を次のように設定する。
操作P(リキャリプレート):Oシリンダへヘッドを移
動するプログラム。
操作q (シーク):指定のシリンダへヘッドを移動す
るプログラム。
操作r (ライトID’):)ランク内においてフォー
マツティング用のIDパターンを用いてフォーマツティ
ングをするプログラム。
操作s(1セクタリード):指定のセクタ(C。
HD、S)から、指定のデータ数DTLをセクタ長とし
て、指定のメモリ領域へデータを読み出すプログラム。
操作31(多セクタリード):指定のセクタ(C,HD
、S)から、指定のデータ数DTLを指定のメモリ領域
へデータを読み出すプログラム。
操作t (1セクタライト):指定のセクタ(C。
HD、S)へ、指定のデータ数DTLをセクタ長として
、指定のメモリ領域のデータを書き込むプログラム。
操作tl(多セクタライト):指定のセクタ(C,HD
、 S)へ、指定のデータ数DTLのデータを指定のメ
モリ領域から書き込むプログラム。
これらサブプログラムa −y i及び、操作プログラ
ムp−tlを用いた場合のディスクフォーマツティング
のプログラムのPAD図を第1図に、多セクタ読み書き
のPAD図を第2図(11,+21に示す。
s、tのかわりにsl、tlを用いた場合は、第2図(
2)は第2図(3)のようになる。また多セクタ読み書
きにおいて有限長のバッファで複数回にわたってデータ
を送受する場合には第3図のようになる。これらにより
、フォーマツティングにおいて最大シリンダ番号という
、ディスクフォーマットに固有の値がある以外は、ディ
スクフォーマットの情報が隠蔽され、操作がその差異に
対して不変であることがわかる。
次に、サブプログラムa w iのフォーマット情報管
理プログラムが、その処理に必要とする情報のテーブル
(フォーマットテーブル)の形式を第4図に示す。各情
報項目は各々下記のデータを意味し、これらのデータが
それぞれ対応するメモリエリアに書込まれる。
IBMFNT (IBMディスクフォーマットフラグ)
:記憶密度とセクタ長が全トラック同一か或いはIBM
ディスクフォーマット準拠かを示すデータ。
5DTYPE :片面/両面の別を示すデータ。
CPDニドライブ当りのシリンダ数。
DNS n重書/倍密の別を示すデータ。
SPTニドランク当りのセクタ数。
LCODE (セクタ長コード): 12Bバイト/
セクタ時0.256バイト/セクタ時1,512バイト
/セクタ時2.1024バイト/セクタ時3゜BPS
(セクタ長当りのバイト数):128/2561512
/1024゜
GPL:セクタのデータフィールドと次のセクタのID
フィールドの間のギャップ(GAP3と称する)の書込
みバイト数。
GSI、:GAP3の読飛ばしバイト数。
C0HOXXXニジリンダO,ヘッドOにおけるXXX
(但しXXXはDNS、SPT、LCODE、BPS
、GPL、GSLのいずれかを表わす。)
COHIXXXニジリンダ0.ヘッド1におけるXXX
<但しXXXはDNS、SPT、LCODE、BPS
、GPL、GSLのいずれかを表わす。)
但しCOHOXXXはIBMディスクフォーマット準拠
時有効、またC0HIXXXはIBMディスクフォーマ
ット準拠、かつ両面の時、有効である。
このテーブルはテーブルの先頭のメモリロケーションと
して設定されたアドレス値(ベース)を基点として、そ
れと相対にメモリを参照する変数を介して参照される。
そこで、このフォーマットテーブルの形式に従って数種
類のディスクフォーマット用のフォーマットテーブルを
作成して、テーブルの先頭アドレス(ベース)を指定し
てそのフォーマットテーブルを呼出すことにより当該の
ディスクフォーマットに対応したディスク制御プログラ
ムの作成が可能となる。The present invention will be described in detail below based on FIGS. 1 to 4. In each figure, the same reference numerals indicate the same or corresponding parts. The format information management program consists of the following subprograms a to 1. Hereinafter, the cylinder number will be expressed as C, the head number as HD, the sector number as S, the number of sectors as CNTS, and the data length (number of bytes) as DTL. Straddle 〉
The numbers in the box indicate the information items hidden by each program, which will be explained later. Subprogram a (sector check): Specified C
, HD, S, and CNTS are correct in the target disc format. Subprogram b: Program that calculates the new C, HD when 1 is added to HD from the given C, HD.
・・・・・・−・ く〉. Subprogram C: given C, HD, S to S
A program to find new C, HD, and S when CNTS is added to --- <■, ■, ■>. Subprogram d: From the given C, HD, S,
A program that calculates the CNTS up to the last sector of the cylinder including that sector.■
, ■, ■〉. Subprogram e: A program that calculates the CNTS from the given C, HD, S to the last sector of the track including that sector.
, ■〉. Subprogram f: Program that calculates CNTS for DTL from given C, HD, and DTL.
−・ く■、■〉. Subprogram g: given C, HD, CNTS
Program to find DTL for CN73 from
−−−−<■, ■). Subprogram h: A program that determines the maximum cylinder number from the number of cylinders in the format table. A program that creates an ID pattern (table of ID numbers) for subprogram mini formatting.
−・−ku■,■,■,■〉. Here, the information items indicated by Φ~■ in parentheses above are:
means the following: ■Differences in handling: two on one side and one on both sides. ■: Difference in recording density: double-density single writing. ■: 128 bytes, 256 heights, 512 hides, 10
Number of bytes per sector (-sector length) of 24 bytes
. ■: Number of sectors per track. ■Nijirinda number. ■: Are the recording density and sector length the same for all tracks? Or the difference in disk format, such as IBM's disk format. The subprograms a-i hide the information items ① to ② except ②. Item (2) shall be used during formatting and reading/writing operations. Here, for convenience of explanation, the basic operation program (also simply referred to as operation) in the floppy disc control program as shown below is temporarily set as follows. Operation P (recalibration plate): A program to move the head to the O cylinder. Operation q (seek): A program that moves the head to a specified cylinder. Operation r (Write ID'):) A program that performs formatting using an ID pattern for formatting within a rank. Operation s (1 sector read): A program that reads data from a specified sector (C. HD, S) to a specified memory area using a specified number of data DTL as the sector length. Operation 31 (multi-sector read): Specified sector (C, HD
, S), the program reads a specified number of data DTL to a specified memory area. Operation t (1 sector write): A program that writes data in a specified memory area to a specified sector (C. HD, S) with the specified number of data DTL as the sector length. Operation tl (multi-sector write): Specified sector (C, HD
, S) is a program that writes a specified number of data DTL from a specified memory area. The PAD diagram of the disk formatting program when these subprograms a-yi and the operation program p-tl are used is shown in Figure 1, and the PAD diagram of multi-sector reading and writing is shown in Figure 2 (11, +21). . If sl and tl are used instead of s and t, Figure 2 (
2) becomes as shown in Figure 2 (3). Further, when data is transmitted and received multiple times using a finite-length buffer in multi-sector reading and writing, the situation is as shown in FIG. 3. With these, it can be seen that the information on the disk format is hidden except for the maximum cylinder number, which is a value unique to the disk format in formatting, and the operation is unchanged with respect to the difference. Next, FIG. 4 shows the format of a table (format table) of information required by the format information management program of the subprogram a w i for its processing. Each information item means the following data, and these data are respectively written into the corresponding memory areas. IBMFNT (IBM disk format flag)
: Storage density and sector length are the same for all tracks or IBM
Data indicating whether the disc format is compliant. 5DTYPE: Data indicating single-sided/double-sided. Number of cylinders per CPD drive. Data indicating whether DNS is double-dense or double-dense. Number of sectors per SPT Nidrank. LCODE (sector length code): 12B bytes/
0.256 bytes per sector / 1,512 bytes per sector / 2.1024 bytes per sector / 3°BPS
(Number of bytes per sector length): 128/2561512
/1024°GPL: Sector data field and next sector ID
Number of bytes written in the gap between fields (referred to as GAP3). GSI: Number of bytes skipped in GAP3. C0HOXXX Nijilinda O, XXX in head O
(However, XXX is DNS, SPT, LCODE, BPS
, GPL, or GSL. ) COHIXXX Niji Linda 0. XXX in head 1
<However, XXX is DNS, SPT, LCODE, BPS
, GPL, or GSL. ) However, COHOXXX is valid when it conforms to the IBM disk format, and C0HIXXX is valid when it conforms to the IBM disk format and is double-sided. This table is referenced via a variable that refers to memory relative to the address value (base) set as the first memory location of the table. Therefore, by creating format tables for several types of disk formats according to the format of this format table, and calling the format table by specifying the start address (base) of the table, the disk control program corresponding to the disk format in question can be created. It becomes possible to create.
この発明によれば、フォーマット管理プログラムとフォ
ーマットテーブルを設定することとしたので、ディスク
フォーマットの差異に対して基となるディスク制御プロ
グラムが不変で、またフォーマットテーブルの作成によ
るのみでそのテーブルデータの入力された、当J亥ディ
スクフォーマツトに対応する動作可能なディスク制御プ
ログラムが作成でき容易に、信顛性の高い、多種類のデ
ィスクフォーマットに対応したディスク制御が可能とな
る効果がある。According to this invention, since a format management program and a format table are set, the underlying disk control program remains unchanged due to differences in disk formats, and table data can be input only by creating a format table. An operable disk control program compatible with the current disk format can be created easily, and highly reliable disk control compatible with a wide variety of disk formats can be achieved.
第1図は本発明の一実施例としてのディスクフォーマツ
ティングプログラムの手順を示すPAD図、第2図(1
)〜(3)及び第3図はそれぞれ本発明の異なる実施例
としての多セクタ読み書きプログラムの手順を示すPA
D図、第4図は本発明の一実施例としてのフォーマット
テーブルの形式を示す第4図
テ!〃しか彰べFIG. 1 is a PAD diagram showing the procedure of a disk formatting program as an embodiment of the present invention, and FIG.
) to (3) and FIG. 3 are PA diagrams each showing the procedure of a multi-sector read/write program as different embodiments of the present invention.
Figures D and 4 show the format of a format table as an embodiment of the present invention. Only praise
Claims (1)
録密度の相異、128バイト、256バイト、512バ
イト、1024バイトというセクタ当たりのバイト長(
以下セクタ長という)、トラック当たりのセクタ数、シ
リンダ数、記録密度とセクタ長が全トラック同一か、或
いは一部異なるかというディスクフォーマットの相異、
等の各情報項目の任意の組合わせから定まるフォーマッ
トに基づいてフロッピディスクのフォーマッティング及
び多セクタの読み書きの操作を行うディスク制御プログ
ラムを、前記情報項目の相異を隠蔽するためのフォーマ
ットに関する処理を行う複数の所定のサブプログラム(
以下このサブプログラム群をフォーマット情報管理プロ
グラムという)と、そのフォーマットにおける処理に必
要な情報を予め設定した所定のテーブル(以下フォーマ
ットテーブルという)とを用いて、作成するようにした
ことを特徴とする多種フロッピディスクフォーマット対
応の制御プログラム作成方法。Differences in handling surfaces (single-sided and double-sided), differences in recording density (single-density and double-density), and byte lengths per sector (128 bytes, 256 bytes, 512 bytes, and 1024 bytes)
Differences in disk formats, such as sector length), number of sectors per track, number of cylinders, recording density and sector length, are all tracks the same or partially different?
A disk control program that performs floppy disk formatting and multi-sector read/write operations based on a format determined from an arbitrary combination of information items such as Multiple predetermined subprograms (
This subprogram group is hereinafter referred to as a format information management program) and a predetermined table (hereinafter referred to as a format table) in which information necessary for processing in that format is set in advance. A method for creating control programs compatible with various floppy disk formats.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27985785A JPS62139183A (en) | 1985-12-12 | 1985-12-12 | Generation method for control program corresponding to various kinds of floppy disk format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27985785A JPS62139183A (en) | 1985-12-12 | 1985-12-12 | Generation method for control program corresponding to various kinds of floppy disk format |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62139183A true JPS62139183A (en) | 1987-06-22 |
Family
ID=17616908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27985785A Pending JPS62139183A (en) | 1985-12-12 | 1985-12-12 | Generation method for control program corresponding to various kinds of floppy disk format |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62139183A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002017055A1 (en) * | 2000-08-18 | 2002-02-28 | Fujitsu Limited | Disk control device, disk control method, remote disk control device, and remote disk control method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5556167A (en) * | 1978-10-20 | 1980-04-24 | Sakura Color Prod Corp | Marking pen ink composition for white board |
JPS58224417A (en) * | 1982-06-21 | 1983-12-26 | Mitsubishi Electric Corp | Device for discriminating format of floppy disc |
JPS5986346A (en) * | 1982-11-09 | 1984-05-18 | Victor Co Of Japan Ltd | Data fetching system |
-
1985
- 1985-12-12 JP JP27985785A patent/JPS62139183A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5556167A (en) * | 1978-10-20 | 1980-04-24 | Sakura Color Prod Corp | Marking pen ink composition for white board |
JPS58224417A (en) * | 1982-06-21 | 1983-12-26 | Mitsubishi Electric Corp | Device for discriminating format of floppy disc |
JPS5986346A (en) * | 1982-11-09 | 1984-05-18 | Victor Co Of Japan Ltd | Data fetching system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002017055A1 (en) * | 2000-08-18 | 2002-02-28 | Fujitsu Limited | Disk control device, disk control method, remote disk control device, and remote disk control method |
US7426609B2 (en) | 2000-08-18 | 2008-09-16 | Fujitsu Limited | Disk control apparatus, disk control method, remote disk control apparatus, and remote disk control method |
US7634616B2 (en) | 2000-08-18 | 2009-12-15 | Fujitsu Limited | Remote disk control apparatus, and remote disk control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH05313980A (en) | Information recording method | |
JP5520315B2 (en) | Rewrite codeword object to magnetic data tape upon error detection | |
ATE259515T1 (en) | ATA INTERFACE ARCHITECTURE USING STATE MACHINES | |
JP2807017B2 (en) | Data compression method | |
BR0208783A (en) | Methods for Reorganizing Data and Tracking Changes by a Database Management System, Data Reorganization Appliance, and Computer Readable Storage Medium | |
MY113983A (en) | An improved data storage device and method of operation | |
JPS62139183A (en) | Generation method for control program corresponding to various kinds of floppy disk format | |
JP2009026443A (en) | Hard disk drive including numbers of data sectors and hard disk drive controller for controlling the same | |
JPH05307836A (en) | Formatting device | |
JP2581003B2 (en) | Recording disk controller | |
JP3314389B2 (en) | Data recording method and recording medium | |
JPS59136860A (en) | Disk controller | |
JP2823615B2 (en) | Disk storage device | |
JPS59146446A (en) | Optical disk processor | |
JPS62171324A (en) | Data transmitting method | |
JPH02132516A (en) | System and method for write enable type optical disk controlling | |
TWI253643B (en) | Method of recording data on optical storage medium and apparatus therefor | |
JPH0512026A (en) | Magnetic disk drive | |
JP3085183B2 (en) | MD system | |
KR100300978B1 (en) | Method for allocating sector | |
KR100255246B1 (en) | Apparatus and method for assigning cluster | |
TW201017523A (en) | A image file generating method and system | |
JP3005443B2 (en) | Centralized management of word processing documents | |
JPS63121178A (en) | Disk controller with writing track address storing function | |
JPH01151467U (en) |