2017.5.17
前へ
次へ
ホームページトップへ戻る

マイコン独立大作戦
CRT/VGAIF+KEYIF+SDCARDIFボードの製作

〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
WindowsパソコンにUSB接続して使う現行方式はそれなりに便利ではありますが、ときとしてWindows
のしがらみから開放されて、小さいながらも独立した一個のパソコンとして機能したいと思うこともあります。
昔はそれが普通のことだったのですが、安価なCRTディスプレイが生産中止となって久しい今日ではそれ
は叶わぬことと諦めていたのですが…。
〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜

[総合第72回]


●SDカードの仮想ドライブのバックアップ(4)

今回は前回までのところで行なった作業を、実際にSDカードのセクタの中身を見ることで確認してみることにします。
まず最初はZB3DOS用のFORMATを行なった直後のFATの中身を見てみます。

>format
......................
>/ld sctrd.bin,8000
loading SCTRD.BIN ...0017(23)bytes loaded,from 8000 to 8016
>cm 8004
8004 00-01
8005 00-
8006 2A-
>jp 8000
>dm 8200,83ff
8200  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8210  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8220  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8230  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8240  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8250  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8260  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8270  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8280  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8290  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82A0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82B0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82C0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82D0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82E0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
82F0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8300  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8310  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8320  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8330  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8340  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8350  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8360  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8370  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8380  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8390  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83A0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83B0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83C0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83D0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83E0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
83F0  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
>cm 8004
8004 01-
8005 00-01
8006 2A-
>jp 8000
>dm 8200,83ff
8200  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8210  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8220  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8230  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8240  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8250  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8260  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8270  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8300  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8310  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8320  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8330  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8360  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8370  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8380  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8390  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
このSDカードではFATエリアはセクタbO100から始まっています。
その最初のセクタbO100と次のセクタbO101の中身を確認しています。
SCTRDを実行した結果、読み出されたセクタの内容は8200〜83FFに書き込まれます。
セクタbO100にはクラスタ#0000〜00FFの情報があります。
クラスタ#0000〜003FはシステムのエリアですからすべてFFFFで埋められています(アドレス8200〜827F)。
その次の8280〜83FFがクラスタ#0040〜00FFに対応する部分です。
ここはすでに説明しましたようにFORMATコマンドによってすべてFFFFで埋められています。
クラスタ#0100〜013Fは、次のセクタbO101を読み込んだアドレス8200〜827Fになります。
ここもFORMATによってFFFFで埋められます。

この状態のSDカードに対して、前回説明しましたVFCLRを実行した結果を見てみます。
ここではまだデバッグ中ですのでVFCLR1A.BINになっています。

>/ld vfclr1a.bin,e000
loading VFCLR1A.BIN ...0070(112)bytes loaded,from E000 to E06F
>jp e000
>cm 8004
8004 00-01
8005 00-
>jp 8000
>dm 8200,83ff
8200  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8210  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8220  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8230  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8240  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8250  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8260  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8270  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8300  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8310  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8320  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8330  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8360  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8370  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8380  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8390  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
>cm 8004
8004 01-
8005 00-01
8006 2A-
>jp 8000
>dm 8200,83ff
8200  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8210  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8220  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8230  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8240  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8250  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8260  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8270  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8300  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8310  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8320  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8330  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8360  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8370  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8380  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8390  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
VFCLRの実行によって、FATのクラスタ#0040〜013Fに対応する範囲が0000でクリアされています。

この状態のSDカードにA.VFD〜D.VFDをコピーしました。
下はコピー後のFATの状態です。

>dir
Z       .       A       .VFD    B       .VFD    C       .VFD    D       .VFD    
>cm 8004
8004 01-
8005 01-00
8006 2A-
>jp 8000
>dm 8200,83ff
8200  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8210  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8220  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8230  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8240  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8250  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8260  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8270  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8280  41 00 42 00 43 00 44 00-45 00 46 00 47 00 48 00  A.B.C.D.E.F.G.H.
8290  49 00 4A 00 4B 00 4C 00-4D 00 4E 00 4F 00 50 00  I.J.K.L.M.N.O.P.
82A0  51 00 52 00 53 00 54 00-55 00 56 00 57 00 58 00  Q.R.S.T.U.V.W.X.
82B0  59 00 5A 00 5B 00 5C 00-5D 00 5E 00 5F 00 60 00  Y.Z.[.\.].^._.`.
82C0  61 00 62 00 63 00 64 00-65 00 66 00 67 00 68 00  a.b.c.d.e.f.g.h.
82D0  69 00 6A 00 6B 00 6C 00-6D 00 6E 00 6F 00 70 00  i.j.k.l.m.n.o.p.
82E0  71 00 72 00 73 00 74 00-75 00 76 00 77 00 78 00  q.r.s.t.u.v.w.x.
82F0  79 00 7A 00 7B 00 7C 00-7D 00 7E 00 7F 00 FF FF  y.z.{.|.}.~....
8300  81 00 82 00 83 00 84 00-85 00 86 00 87 00 88 00  ................
8310  89 00 8A 00 8B 00 8C 00-8D 00 8E 00 8F 00 90 00  ................
8320  91 00 92 00 93 00 94 00-95 00 96 00 97 00 98 00  ................
8330  99 00 9A 00 9B 00 9C 00-9D 00 9E 00 9F 00 A0 00  ...............
8340  A1 00 A2 00 A3 00 A4 00-A5 00 A6 00 A7 00 A8 00  。.「.」.、.・.ヲ.ァ.ィ.
8350  A9 00 AA 00 AB 00 AC 00-AD 00 AE 00 AF 00 B0 00  ゥ.ェ.ォ.ャ.ュ.ョ.ッ.ー.
8360  B1 00 B2 00 B3 00 B4 00-B5 00 B6 00 B7 00 B8 00  ア.イ.ウ.エ.オ.カ.キ.ク.
8370  B9 00 BA 00 BB 00 BC 00-BD 00 BE 00 BF 00 FF FF  ケ.コ.サ.シ.ス.セ.ソ...
8380  C1 00 C2 00 C3 00 C4 00-C5 00 C6 00 C7 00 C8 00  チ.ツ.テ.ト.ナ.ニ.ヌ.ネ.
8390  C9 00 CA 00 CB 00 CC 00-CD 00 CE 00 CF 00 D0 00  ノ.ハ.ヒ.フ.ヘ.ホ.マ.ミ.
83A0  D1 00 D2 00 D3 00 D4 00-D5 00 D6 00 D7 00 D8 00  ム.メ.モ.ヤ.ユ.ヨ.ラ.リ.
83B0  D9 00 DA 00 DB 00 DC 00-DD 00 DE 00 DF 00 E0 00  ル.レ.ロ.ワ.ン.゙.゚...
83C0  E1 00 E2 00 E3 00 E4 00-E5 00 E6 00 E7 00 E8 00  ................
83D0  E9 00 EA 00 EB 00 EC 00-ED 00 EE 00 EF 00 F0 00  ................
83E0  F1 00 F2 00 F3 00 F4 00-F5 00 F6 00 F7 00 F8 00  ................
83F0  F9 00 FA 00 FB 00 FC 00-FD 00 FE 00 FF 00 FF FF  ................
>cm 8004
8004 01-
8005 00-01
8006 2A-
>jp 8000
>dm 8200,83ff
8200  01 01 02 01 03 01 04 01-05 01 06 01 07 01 08 01  ................
8210  09 01 0A 01 0B 01 0C 01-0D 01 0E 01 0F 01 10 01  ................
8220  11 01 12 01 13 01 14 01-15 01 16 01 17 01 18 01  ................
8230  19 01 1A 01 1B 01 1C 01-1D 01 1E 01 1F 01 20 01  .............. .
8240  21 01 22 01 23 01 24 01-25 01 26 01 27 01 28 01  !.".#.$.%.&.'.(.
8250  29 01 2A 01 2B 01 2C 01-2D 01 2E 01 2F 01 30 01  ).*.+.,.-.../.0.
8260  31 01 32 01 33 01 34 01-35 01 36 01 37 01 38 01  1.2.3.4.5.6.7.8.
8270  39 01 3A 01 3B 01 3C 01-3D 01 3E 01 3F 01 FF FF  9.:.;.<.=.>.?...
8280  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8290  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8300  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8310  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8320  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8330  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8360  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8370  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8380  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8390  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
最初のセクタbO100の中身を見てみると、A.VFDがコピーされたクラスタ#0040〜007Fに対応する8280〜82FFには0041〜007Fが順に書き込まれたあと、最後がFFFFになっています。
最初のクラスタ#0040のFATエリア(アドレス8280、8281)に次の#0041が書かれていて、これはクラスタ#0040の次のデータがクラスタ#0041に続いていることを示しています。
最後のクラスタ#007Fの場所(82FE、82FF)にはFFFFが書かれていて、このファイルのデータはここで終わりであることを示しています。

上はFORMAT直後にA.VFD〜D.VFDをコピーしたときのFATの中身を示しました。
前回はFORMAT後にいくつかのファイルをコピーしたあとで、VFCLRを実行してから、A.VFD〜D.VFDをコピーしました。
下はそのようにコピーを行なったあとのFATの内容です。

>dir
Z       .       SZBIOS1X.BIN    SZCCP1F .BIN    SZINIT1D.BIN    SZBDOS1N.BIN
SZBDS2B .BIN    SMBDS2E .BIN    SMCCP1B .BIN    SMINIT1B.BIN    SMBDOS2C.BIN    
A       .VFD    B       .VFD    C       .VFD    D       .VFD    TEST    .TXT    
VRAMTEST.TXT    
>/ld sctrd.bin,8000
loading SCTRD.BIN ...0017(23)bytes loaded,from 8000 to 8016
>cm 8004
8004 00-01
8005 00-
>jp 8000
>dm 8200,83ff
8200  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8210  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8220  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8230  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8240  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8250  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8260  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8270  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8280  41 00 42 00 43 00 44 00-45 00 46 00 47 00 48 00  A.B.C.D.E.F.G.H.
8290  49 00 4A 00 4B 00 4C 00-4D 00 4E 00 4F 00 50 00  I.J.K.L.M.N.O.P.
82A0  51 00 52 00 53 00 54 00-55 00 56 00 57 00 58 00  Q.R.S.T.U.V.W.X.
82B0  59 00 5A 00 5B 00 5C 00-5D 00 5E 00 5F 00 60 00  Y.Z.[.\.].^._.`.
82C0  61 00 62 00 63 00 64 00-65 00 66 00 67 00 68 00  a.b.c.d.e.f.g.h.
82D0  69 00 6A 00 6B 00 6C 00-6D 00 6E 00 6F 00 70 00  i.j.k.l.m.n.o.p.
82E0  71 00 72 00 73 00 74 00-75 00 76 00 77 00 78 00  q.r.s.t.u.v.w.x.
82F0  79 00 7A 00 7B 00 7C 00-7D 00 7E 00 7F 00 FF FF  y.z.{.|.}.~....
8300  81 00 82 00 83 00 84 00-85 00 86 00 87 00 88 00  ................
8310  89 00 8A 00 8B 00 8C 00-8D 00 8E 00 8F 00 90 00  ................
8320  91 00 92 00 93 00 94 00-95 00 96 00 97 00 98 00  ................
8330  99 00 9A 00 9B 00 9C 00-9D 00 9E 00 9F 00 A0 00  ...............
8340  A1 00 A2 00 A3 00 A4 00-A5 00 A6 00 A7 00 A8 00  。.「.」.、.・.ヲ.ァ.ィ.
8350  A9 00 AA 00 AB 00 AC 00-AD 00 AE 00 AF 00 B0 00  ゥ.ェ.ォ.ャ.ュ.ョ.ッ.ー.
8360  B1 00 B2 00 B3 00 B4 00-B5 00 B6 00 B7 00 B8 00  ア.イ.ウ.エ.オ.カ.キ.ク.
8370  B9 00 BA 00 BB 00 BC 00-BD 00 BE 00 BF 00 FF FF  ケ.コ.サ.シ.ス.セ.ソ...
8380  C1 00 C2 00 C3 00 C4 00-C5 00 C6 00 C7 00 C8 00  チ.ツ.テ.ト.ナ.ニ.ヌ.ネ.
8390  C9 00 CA 00 CB 00 CC 00-CD 00 CE 00 CF 00 D0 00  ノ.ハ.ヒ.フ.ヘ.ホ.マ.ミ.
83A0  D1 00 D2 00 D3 00 D4 00-D5 00 D6 00 D7 00 D8 00  ム.メ.モ.ヤ.ユ.ヨ.ラ.リ.
83B0  D9 00 DA 00 DB 00 DC 00-DD 00 DE 00 DF 00 E0 00  ル.レ.ロ.ワ.ン.゙.゚...
83C0  E1 00 E2 00 E3 00 E4 00-E5 00 E6 00 E7 00 E8 00  ................
83D0  E9 00 EA 00 EB 00 EC 00-ED 00 EE 00 EF 00 F0 00  ................
83E0  F1 00 F2 00 F3 00 F4 00-F5 00 F6 00 F7 00 F8 00  ................
83F0  F9 00 FA 00 FB 00 FC 00-FD 00 FE 00 FF 00 FF FF  ................
>cm 8004
8004 01-
8005 00-01
8006 2A-
>jp 8000
>dm 8200,83ff
8200  01 01 02 01 03 01 04 01-05 01 06 01 07 01 08 01  ................
8210  09 01 0A 01 0B 01 0C 01-0D 01 0E 01 0F 01 10 01  ................
8220  11 01 12 01 13 01 14 01-15 01 16 01 17 01 18 01  ................
8230  19 01 1A 01 1B 01 1C 01-1D 01 1E 01 1F 01 20 01  .............. .
8240  21 01 22 01 23 01 24 01-25 01 26 01 27 01 28 01  !.".#.$.%.&.'.(.
8250  29 01 2A 01 2B 01 2C 01-2D 01 2E 01 2F 01 30 01  ).*.+.,.-.../.0.
8260  31 01 32 01 33 01 34 01-35 01 36 01 37 01 38 01  1.2.3.4.5.6.7.8.
8270  39 01 3A 01 3B 01 3C 01-3D 01 3E 01 3F 01 FF FF  9.:.;.<.=.>.?...
8280  FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF  ................
8290  FF FF FF FF FF FF 00 00-00 00 00 00 00 00 00 00  ................
82A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
82F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8300  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8310  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8320  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8330  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8340  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8350  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8360  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8370  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8380  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
8390  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83A0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83B0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83C0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83D0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83E0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
83F0  00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00  ................
セクタbO101の中身を読み込んだ8200〜83FFのところで、8280〜8295がFFFFで埋められています。
ここにはA.VFD〜D.VFDをコピーする前後に作成(またはコピー)されたファイルのクラスタ情報が書かれています。

下はディレクトリエリアの内容です。

>cm 8004
8004 01-02
8005 E0-
>jp 8000
>dm 8200,83ff
8200  5A 20 20 20 20 20 20 20-20 20 20 10 00 00 00 00  Z          .....
8210  00 00 00 00 00 00 00 00-00 00 02 00 00 00 00 00  ................
8220  53 5A 42 49 4F 53 31 58-42 49 4E 20 00 BC 05 AF  SZBIOS1XBIN .シ.ッ
8230  AF 4A AF 4A 00 00 64 7D-90 4A 40 01 BB 03 00 00  ッJッJ..d}.J@.サ...
8240  53 5A 43 43 50 31 46 20-42 49 4E 20 00 C0 05 AF  SZCCP1F BIN .タ.ッ
8250  AF 4A AF 4A 00 00 62 AE-8D 4A 41 01 02 08 00 00  ッJッJ..bョ.JA.....
8260  53 5A 49 4E 49 54 31 44-42 49 4E 20 00 C2 05 AF  SZINIT1DBIN .ツ.ッ
8270  AF 4A AF 4A 00 00 8F 42-8D 4A 42 01 8C 00 00 00  ッJッJ...B.JB.....
8280  53 5A 42 44 4F 53 31 4E-42 49 4E 20 00 C3 05 AF  SZBDOS1NBIN .テ.ッ
8290  AF 4A AF 4A 00 00 32 99-8E 4A 43 01 A7 0D 00 00  ッJッJ..2..JC.ァ...
82A0  53 5A 42 44 53 32 42 20-42 49 4E 20 00 C5 05 AF  SZBDS2B BIN .ナ.ッ
82B0  AF 4A AF 4A 00 00 72 41-98 4A 44 01 BB 19 00 00  ッJッJ..rA.JD.サ...
82C0  53 4D 42 44 53 32 45 20-42 49 4E 20 00 2B 0D AF  SMBDS2E BIN .+.ッ
82D0  AF 4A AF 4A 00 00 EF 4A-94 4A 45 01 BF 19 00 00  ッJッJ...J.JE.ソ...
82E0  53 4D 43 43 50 31 42 20-42 49 4E 20 00 2C 0D AF  SMCCP1B BIN .,.ッ
82F0  AF 4A AF 4A 00 00 C5 41-93 4A 46 01 02 08 00 00  ッJッJ..ナA.JF.....
8300  53 4D 49 4E 49 54 31 42-42 49 4E 20 00 2F 0D AF  SMINIT1BBIN ./.ッ
8310  AF 4A AF 4A 00 00 10 3B-93 4A 47 01 8C 00 00 00  ッJッJ...;.JG.....
8320  53 4D 42 44 4F 53 32 43-42 49 4E 20 00 31 0D AF  SMBDOS2CBIN .1.ッ
8330  AF 4A AF 4A 00 00 CE 44-93 4A 48 01 A6 0D 00 00  ッJッJ..ホD.JH.ヲ...
8340  41 20 20 20 20 20 20 20-56 46 44 20 10 7D 52 AF  A       VFD .}Rッ
8350  AF 4A AF 4A 00 00 E4 92-86 42 40 00 00 00 20 00  ッJッJ.....B@... .
8360  42 20 20 20 20 20 20 20-56 46 44 20 10 1D 56 AF  B       VFD ..Vッ
8370  AF 4A B0 4A 00 00 DD 42-B0 4A 80 00 00 00 20 00  ッJーJ..ンBーJ.... .
8380  43 20 20 20 20 20 20 20-56 46 44 20 10 0E 59 AF  C       VFD ..Yッ
8390  AF 4A AF 4A 00 00 60 58-87 42 C0 00 00 00 20 00  ッJッJ..`X.Bタ... .
83A0  44 20 20 20 20 20 20 20-56 46 44 20 10 3C 5C AF  D       VFD .<\ッ
83B0  AF 4A AF 4A 00 00 87 AE-AF 4A 00 01 00 00 20 00  ッJッJ...ョッJ.... .
83C0  54 45 53 54 20 20 20 20-54 58 54 20 00 00 00 00  TEST    TXT ....
83D0  00 00 00 00 00 00 00 00-00 00 49 01 5F 00 00 00  ..........I._...
83E0  56 52 41 4D 54 45 53 54-54 58 54 20 00 00 00 00  VRAMTESTTXT ....
83F0  00 00 00 00 00 00 00 00-00 00 4A 01 41 00 00 00  ..........J.A...
ファイルのデータが置かれている最初のクラスタ#は、32バイトごとに区切られたファイル名エリアの27、28バイト目にあります。
SZBIOS1X.BINは0140、SZCCP1F.BINは0141、A.VFDは0040、B.VFDは0080、C.VFDは00C0、D.VFDは0100と書かれていることがわかります。
そのあとのTEST.TXTはSMBDOS2C.BINの0148のうしろの0149になっていて、A.VFD〜D.VFDのコピーとそれ以外のファイルのコピーが正しくおさまっていることが確認できます。

このところ説明してきましたように、VFCLRを実行することで、A.VFD〜D.VFDを簡単にコピー、バックアップすることができます。
ということでこのVFCLR.BINを皆様にお届けする簡単な方法として、当ホームページからダウンロードしていただくことにしました。
ところがここまで書いてきまして、そういえばVFCLR.BINはND80Z3.5(ND80ZV)でしか実行してなくて、ND8080、MYCPU80では未確認であるということに気が付きました。

そういうことですので、VFCLR.BINのダウンロードにつきましては、次回までお待ちください。

CRT/VGAIF+KEYIF+SDCARDIFボードの製作[総合第72回]
2017.5.17upload

前へ
次へ
ホームページトップへ戻る