JPS62167695A - Memory writing method - Google Patents

Memory writing method

Info

Publication number
JPS62167695A
JPS62167695A JP61009698A JP969886A JPS62167695A JP S62167695 A JPS62167695 A JP S62167695A JP 61009698 A JP61009698 A JP 61009698A JP 969886 A JP969886 A JP 969886A JP S62167695 A JPS62167695 A JP S62167695A
Authority
JP
Japan
Prior art keywords
written
data
address
memory
word
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
JP61009698A
Other languages
Japanese (ja)
Inventor
Masanori Kitaguchi
北口 昌則
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.)
Shinko Electric Co Ltd
Original Assignee
Shinko Electric 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 Shinko Electric Co Ltd filed Critical Shinko Electric Co Ltd
Priority to JP61009698A priority Critical patent/JPS62167695A/en
Publication of JPS62167695A publication Critical patent/JPS62167695A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the access time by writing information of memory management sequentially from the minimum address (or maximum address) of a memory and writing data sequentially from the maximum address (or minimum address) of the memory. CONSTITUTION:A space S is written on the 1st word and when data to be written on first takes place, a file name is written at first on the 1st word and address data 'FFFF' is written on the 2nd word. Then the data is written sequentially from the address 'FFFF' on the smaller address and when the last data is written on the address 'FF00', the end address 'FF00' of the written data is written on the 3rd word and a space S is written on the 4th word. When the data to be written again takes place, a file name is written on the 4th word and the address data 'FFFF' less than the address 'FF00' by one is writing on the 5th word. The processing above is repeated. Thus, all the storage capacity of the memory is used effectively and the access time is reduced.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、特に小容量メモリの書き込みに用いて好適
なメモリ書込方法に関する。
DETAILED DESCRIPTION OF THE INVENTION "Field of Industrial Application" The present invention relates to a memory writing method particularly suitable for use in writing to a small capacity memory.

「従来の技術」 近年、クレジットカード形状のいイつゆるICカードが
開発されている。このICカードは、フロッピィディス
ク等に比べて記憶容量が小さく、したがって、この記f
α容量をより有効に、無駄なく使用する°ことが必要と
なる。この発明は、メモリ容量を無駄なく使用すること
ができるメモリ書込方法を提供するものである。
"Prior Art" In recent years, all kinds of IC cards in the shape of a credit card have been developed. This IC card has a smaller storage capacity than a floppy disk, etc., so this
It is necessary to use α capacity more effectively and without waste. The present invention provides a memory writing method that allows memory capacity to be used without waste.

従来、フロッピィディスクにおいては、次のような書込
方法が行なわれていた。すなわち、第2図はフロッピィ
ディスクの全記憶エリアを示す図であり、この記憶エリ
アは、予めディレクトリエリアDI’tE、ファイル・
アロケーション・テーブルエリアFTE、データエリア
DAEに分割されている。そして、ディレクトリエリア
DREには、例えばKf12Jのディレクトリを書き込
むエリアDr1−DrKh<1けられている。またデー
タエリアDAEは、例えばN個の等容量のデータブロッ
ク1)bl−DbNに分割されている。また、ファイル
・アロケーション・テーブルエリアFTEには、第3図
に示すように、データブロックDbl −DbNの各々
に対応してエリアFal=FaN(各8ビツト)が設け
られている。
Conventionally, the following writing method has been used for floppy disks. That is, FIG. 2 is a diagram showing the entire storage area of a floppy disk, and this storage area is preliminarily divided into a directory area DI'tE, a file
It is divided into an allocation table area FTE and a data area DAE. The directory area DRE has an area Dr1-DrKh<1 in which the directory of, for example, Kf12J is written. Further, the data area DAE is divided into, for example, N data blocks 1) bl-DbN of equal capacity. Further, in the file allocation table area FTE, as shown in FIG. 3, areas Fal=FaN (8 bits each) are provided corresponding to each of the data blocks Dbl to DbN.

そして、ディレクトリエリアDREには、ファイル名(
例えばrA BCl、rD E I?’J等)およびそ
のファイルの最初のデータが記憶されているデータブロ
ックDbの番号(ro I JJO3J等)が書き込ま
れる。また、ファイル・アロケーション・テーブルエリ
アFTEの各エリアF’al〜FaNには次のようなデ
ータが書き込まれる。まず、対応するデータブロックD
bにデータが書き込まれていない場合は、データ「00
」が書き込まれる。次に、例えばデータブロックDb+
のデータがデータブロックDb2へ続く場合は、エリア
Palにデータ「02」(次のデータブロック番号)が
書き込まれる。
Then, in the directory area DRE, the file name (
For example, rA BCl, rD E I? 'J, etc.) and the number of the data block Db in which the first data of the file is stored (ro I JJO3J, etc.) are written. Further, the following data is written in each area F'al to FaN of the file allocation table area FTE. First, the corresponding data block D
If no data is written to b, the data “00
" is written. Next, for example, data block Db+
If the data continues to data block Db2, data "02" (next data block number) is written in area Pal.

また、例えば1つのファイルのデータがデータブロック
Db4で終了した場合は、エリアFa4にデータ「80
」が書き込まれる。
For example, if the data of one file ends at data block Db4, data "80" is stored in area Fa4.
" is written.

しかして、第2図および第3図に示す例は、データが次
のように書き込まれていることを示している。すなわち
、ファイルrABcJのデータは、まず、データブロッ
クDblに書き込まれ、次に、データブロックDb2に
書き込まれ、次にデータブロックDb4に書き込まれ、
このデータブロックDb4で終了している。まJこ、フ
ァイルrD E F’ Jのデータは、まず、データブ
ロックDb3に書き込まれ、次いでデータブ〔1ツクD
b5に書き込まれ、このデータブロックI)b5で終了
している。
The examples shown in FIGS. 2 and 3 show that data is written as follows. That is, the data of file rABcJ is first written to data block Dbl, then written to data block Db2, then written to data block Db4,
It ends with this data block Db4. The data of the file rD E F' J is first written to the data block Db3, and then the data of the file rD E F' J is written to the data block Db3.
b5 and ends with this data block I)b5.

また、データブロックD b6 、D b7 、D b
Nには何のデータも書き込まれていない。
Moreover, data blocks D b6 , D b7 , D b
No data is written to N.

また、新たにデータ書込みを行う場合は、まず、ファイ
ル・アロケーション・テーブル−エリアF′rEを走査
して空きデータブロックDbを検出し、次いで、ディレ
クトリエリアDREの登録を行い、次いで検出されたデ
ータブ【ノックDb内にデータを書き込む。そのデータ
ブロックDbがr’ULLの状態になった場合は、再び
ファイル・アロケーション・テーブルエリアI” T 
Eを走査して空きデータブロックDbを検出し、次いで
ファイル・ア〔Jケーション・テーブルエリアF’TE
の書き込みを行い、次に、検出されたデータブロックD
b内にデータを書き込み、以下、上記の過程を繰り返す
。そして、そのファイルの全データの書き込みが終了し
た場合は、最後に、ファイル・アロケーション・テーブ
ルエリアFTEにデータ「80」を書き込む。
Also, when writing new data, first scan the file allocation table area F'rE to detect an empty data block Db, then register the directory area DRE, and then register the detected data block. [Write data into knock Db. If the data block Db becomes r'ULL, the file allocation table area I" T
E is scanned to detect a free data block Db, and then the file application [J application table area F'TE
is written, and then the detected data block D
Write data in b, and repeat the above process. When all the data in the file has been written, data "80" is finally written in the file allocation table area FTE.

「発明が解決しようとする問題点」 ところで、上述した従来の書込方法にあっては、最後の
データが書き込まれるデータブロックDbが、通常、F
ULLの状態にならず、無駄力(生じると共に、ファイ
ル・アロケーション・テーブルエリアFTEというデー
タ書込みに使用されなし1エリアが必要となる。また、
ファイル・アロケーション・テーブルエリアF T E
を介してメモリアクセスをすることから、アクセス時間
が長くなる問題がある。
"Problems to be Solved by the Invention" By the way, in the conventional writing method described above, the data block Db to which the last data is written is usually
This does not result in a ULL state, resulting in wasted power (and also requires one area called the file allocation table area FTE that is not used for data writing. Also,
File allocation table area FTE
Since the memory is accessed via , there is a problem that the access time becomes long.

この発明は上述した事情に鑑みてなされた乙ので、メモ
リ容量を無駄なく使用することができると共に、アクセ
ス時間を短くすることができるメモリ書込方法を提供す
ることを目的としている。
The present invention has been made in view of the above-mentioned circumstances, and an object of the present invention is to provide a memory writing method that can use memory capacity without wasting it and shorten access time.

「問題点を解決するだめの手段」 この発明は、メモリの最小アドレス(または最大アドレ
ス)から順次メモリ管理用の情報を書き込み、前記メモ
リの最大アドレス(または最小アドレス)から順次デー
タを書き込むことを特徴としている。
"Means for Solving the Problem" This invention writes memory management information sequentially from the minimum address (or maximum address) of the memory, and writes data sequentially from the maximum address (or minimum address) of the memory. It is a feature.

「実施例」 以下、この発明によるメモリ書込方法の一実施例を、図
面を参照して説明する。
Embodiment An embodiment of the memory writing method according to the present invention will be described below with reference to the drawings.

第1図(イ)の符号MEは、データ書き込みが行なわれ
るメモリの全記憶エリアを示す。このメモリは最小アド
レスがrooooJ、最大アドレスがrFI”r;’F
’j(16進数)であるとする。また、このメモリはバ
イト単位で書き込み/読み出しが行なわれる。また、以
下の説明におけるワードは2バイトによって構成される
乙のとする。また、アドレスro O00JJO00N
の2バイトを第1ワード、アドレスr0002J、ro
 OO3Jの2バイトを第2ワードとし、以下、順次同
様に呼ぶ。
Reference numeral ME in FIG. 1(a) indicates the entire storage area of the memory in which data is written. This memory has a minimum address of rooooJ and a maximum address of rFI"r;'F
'j (hexadecimal number). Furthermore, writing/reading is performed in this memory in units of bytes. Furthermore, in the following explanation, it is assumed that a word consists of two bytes. Also, address ro O00JJO00N
2 bytes of 1st word, address r0002J, ro
The 2 bytes of OO3J are used as the second word, and will be referred to in the same manner from now on.

この実施例による書込方法においては、まず、データ書
込みを開始する前に、第1図(イ)に示すように、第1
ワードにスペースSを書き込む。次に、最初の書き込む
べきデータが発生した場合は、第1図(ロ)に示すよう
に、まず、第1ワードにファイル名を書き込み、第2ワ
ードにアドレスデータrF F F F J(最大アド
レス)を書き込む。次に、アドレスIf;’r’FFJ
から順次小アドレス方向へデータを書き込んで行く。い
ま、最後のデータがアドレスrFFOOJに書き込まれ
たとする。次に、書き込んだデータの終了アドレスrF
F”00Jを第3ワードに書き込み、次いで第4ワード
にスペースSを書き込む。次に、再び書き込むべきデー
タが発生した場合は、最小アドレスr0000Jから順
次スペースSを探し、検出されたスペースSの1つ前の
ワードの内容から終了アドレスrFFOOJを検知する
。次に、第1図(ハ)に示すように、いままでスペース
Sが書き込まれていた第4ワード内にファイル名を書き
込み、次いで、上記の過程で検知されたアドレスrFF
OOJより1つ小さいアドレスデータrFEF’FJを
第5ワードに書き込む。次に、そのアドレスrFEFF
Jから順次小アドレス方向へデータを書き込んで行く。
In the writing method according to this embodiment, first, before starting data writing, as shown in FIG.
Write a space S in Word. Next, when the first data to be written occurs, as shown in FIG. ). Next, address If;'r'FFJ
From there, data is written sequentially in the direction of small addresses. Assume now that the last data has been written to address rFFOOJ. Next, the end address rF of the written data
Write F”00J to the third word, and then write space S to the fourth word.Next, if data to be written again occurs, search for spaces S sequentially from the minimum address r0000J, and write 1 of the detected space S. The end address rFFOOJ is detected from the contents of the previous word.Next, as shown in Figure 1 (c), the file name is written in the fourth word where the space S has been written, and then the The address rFF detected in the process of
Address data rFEF'FJ, which is one smaller than OOJ, is written in the fifth word. Then its address rFEFF
Data is written sequentially from J toward smaller addresses.

次に、データ書き込みが終了した時点で、終了アドレス
(rFEOIJとする)を第6ワードに書き込み、次い
で第7ワードにスペースSを書き込む。以下、書き込む
べきデータが発生する毎に上記の処理を繰り返す。
Next, when data writing is completed, an end address (rFEOIJ) is written in the sixth word, and then a space S is written in the seventh word. Thereafter, the above process is repeated every time data to be written is generated.

しかして、上記の書込方法によれば、第2図において説
明した最後のデータが書き込まれるデ′−タブロックD
bにおける無駄が発生しない。また、第2図のファイル
・アロケーション・テーブルエリアFT Eを必要とし
ないことから、メモリの全記憶エリアをより有効に使用
することができると共に、メモリアクセス時間ら短くな
る利点が得られる。
According to the above writing method, the data block D to which the last data explained in FIG.
No waste occurs in b. Further, since the file allocation table area FTE shown in FIG. 2 is not required, the entire storage area of the memory can be used more effectively and the memory access time can be shortened.

なお、第1図(ロ)に示す書き込みが終了した時点で、
スペースSに続く第4ワードに、次の開始アドレスrF
EFFJを書き込んでおいてもよい。
Furthermore, when the writing shown in Figure 1 (b) is completed,
In the fourth word following the space S, the next starting address rF
You may also write EFFJ.

このようにすれば、次のデータ書き込み時において、開
始アドレスを容易に検知することができる。
In this way, the start address can be easily detected when writing the next data.

また、上記実施例においては、ファイル名を1ワードと
したが、このファイル名に複数ワードを割り当ててもよ
いことは勿論である。また、上記実施例においては、最
小アドレスから順次メモリ管理用の情報を書き込み、最
大アドレスから順次データを書き込むようにしたが、逆
に、最大アドレスからメモリ管理用の情報を、最小アド
レスからデータを書き込むようにしてもよい。
Further, in the above embodiment, the file name is one word, but it goes without saying that a plurality of words may be assigned to the file name. Furthermore, in the above embodiment, memory management information is written sequentially from the smallest address and data is written sequentially from the largest address, but conversely, memory management information is written from the largest address and data is written from the smallest address. You may also write it.

「発明の効果」 以上説明したように、この発明によれば、メモリの最小
アドレス(または最大アドレス)から順次メモリ管理用
の情報を書き込み、前記メモリの最大アドレス(または
最小アドレス)から順次データを書き込むようにしたの
で、メモリの全記憶容量を無駄なく使用することができ
ると共に、アクセス時間ら従来の書込方法より短かくず
ろことができる効果がある。
"Effects of the Invention" As explained above, according to the present invention, memory management information is written sequentially from the minimum address (or maximum address) of the memory, and data is sequentially written from the maximum address (or minimum address) of the memory. Since writing is performed, the entire storage capacity of the memory can be used without waste, and the access time is also shorter than that of the conventional writing method.

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

第1図はこの発明の一実施例によるメモリ書込方法を説
明するための図、第2図はフロッピィディスクのデータ
書込み状態を示す図、第3図は第2図におけるファイル
・アロケージ:lン・テーブルエリアF T Eを示す
図である。 ME・・・・・・メモリの全記憶エリア第2図
FIG. 1 is a diagram for explaining a memory writing method according to an embodiment of the present invention, FIG. 2 is a diagram showing a data writing state of a floppy disk, and FIG. 3 is a diagram showing the file allocation in FIG. 2. - It is a diagram showing the table area FTE. ME・・・・・・All storage areas of memory Figure 2

Claims (1)

【特許請求の範囲】[Claims] メモリにデータを書き込むメモリ書込方法において、前
記メモリの最小アドレス(または最大アドレス)から順
次メモリ管理用の情報を書き込み、前記メモリの最大ア
ドレス(または最小アドレス)から順次データを書き込
むことを特徴とするメモリ書込方法。
A memory writing method for writing data to a memory, characterized in that information for memory management is written sequentially from the minimum address (or maximum address) of the memory, and data is written sequentially from the maximum address (or minimum address) of the memory. Memory writing method.
JP61009698A 1986-01-20 1986-01-20 Memory writing method Pending JPS62167695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61009698A JPS62167695A (en) 1986-01-20 1986-01-20 Memory writing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61009698A JPS62167695A (en) 1986-01-20 1986-01-20 Memory writing method

Publications (1)

Publication Number Publication Date
JPS62167695A true JPS62167695A (en) 1987-07-24

Family

ID=11727447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61009698A Pending JPS62167695A (en) 1986-01-20 1986-01-20 Memory writing method

Country Status (1)

Country Link
JP (1) JPS62167695A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004164493A (en) * 2002-11-15 2004-06-10 Wescom Inc Data management system for non-volatile memory, data management method for non-volatile memory, and its program
JP2005063038A (en) * 2003-08-08 2005-03-10 Sony Corp Data processing device, method thereof, program thereof, and recording medium
JP2005063039A (en) * 2003-08-08 2005-03-10 Sony Corp Data processor, its method, and its program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004164493A (en) * 2002-11-15 2004-06-10 Wescom Inc Data management system for non-volatile memory, data management method for non-volatile memory, and its program
JP2005063038A (en) * 2003-08-08 2005-03-10 Sony Corp Data processing device, method thereof, program thereof, and recording medium
JP2005063039A (en) * 2003-08-08 2005-03-10 Sony Corp Data processor, its method, and its program
JP4590842B2 (en) * 2003-08-08 2010-12-01 ソニー株式会社 Data writing apparatus, data writing method, data reading apparatus, data reading method, and program

Similar Documents

Publication Publication Date Title
US6202138B1 (en) Increasing the memory performance of flash memory devices by writing sectors simultaneously to multiple flash memory devices
US7404031B2 (en) Memory card, nonvolatile semiconductor memory, and method of controlling semiconductor memory
US6430672B1 (en) Method for performing address mapping using two lookup tables
US20050055532A1 (en) Method for efficiently controlling read/write of flash memory
KR960029984A (en) Semiconductor disk device
US5765203A (en) Storage and addressing method for a buffer memory control system for accessing user and error imformation
US6035381A (en) Memory device including main memory storage and distinct key storage accessed using only a row address
US7310698B2 (en) Method and apparatus for extending memory addressing
JPH05314019A (en) Memory card device
JPS5843777B2 (en) Rotating magnetic storage device
JPS62167695A (en) Memory writing method
JPS6024657A (en) Data storing method
US20230008332A1 (en) Parsing method, parsing apparatus, electronic device, and computer storage medium
JPH11110267A (en) Device and method for data storing and storage medium
JP2002091806A (en) Filing system
JP2000284996A (en) Memory managing device and its method
JPS6375950A (en) Control system for cache of fba disk
JP2912771B2 (en) Memory card device
JPH0547189A (en) Memory card device
JPH0430632B2 (en)
JP2507399B2 (en) Database equipment
JPS62157934A (en) Memory address system
JP2845746B2 (en) Micro program controller
JPS63177234A (en) File save loading method
JPH0256038A (en) Access control system for memory