³nºÐ¤ù±q Apple II ¶}©l±À¥X¨Ó¦Ü¤µ¡A¬ù 20 Ó¦~ÀY¤F¡AÁö¤w¬Oº¥ÅS¯hºA¡A¦ý¬O¦b¤pÀɮץ洫ªº±¡§Î¤U¡A¤´¬O³Ì¬°¤è«Kªº¤u¨ã¡CApple II ªº®É¥N¡A¤p¤ì°¸¥¼¯à®¥³{¨ä®É¡A¤£¤Ó¤F¸Ñ¨ä©Ò¨Ï¥Îªº³nºÐ¤ù¡CIBM PC ¤Î¨ä¬Û®e¹q¸£©Ò¨Ï¥Îªº³nºÐ¤ù¨Ìª½®|¤j¤p¤À¬°¨âºØ¡A¤¤S¥|¤À¤§¤@^¦T¤Î¤T¤S¤G¤À¤§¤@^¦T¡C«eªÌÁöµM¦³¸û¤jªº±¿n¡A¦ý¬OÀx¦s¸ê®Æ¤Ï¦Ó¤ñ¸û¤p¡C¤¤S¥|¤À¤§¤@^¦Tªº³nºÐ¤ù¦³ 160¡N180¡N320¡N360¡N1200 KB ¤ºØ®e¶q¡A¦Ó¤T¤S¤G¤À¤§¤@^¦Tªº³nºÐ¤ù¦³ 720¡N1440KB ¨âºØ®e¶q¡A¦ý¬O²{¦b´X¥G¬Ý¤£¨ì¤¤S¥|¤À¤§¤@^¦Tªº³nºÐ¤ù¡A¦Ó¤T¤S¤G¤À¤§¤@^¦Tªº³nºÐ¤ù³Ì±`¥Îªº¬O±N¥¦®æ¦¡¤Æ ( format ) ¦¨ 1440KB¡A¤]´N¬O 1.44MB ®e¶q¤j¤p¡C³o¤@³¹ùØ¡A¤p¤ì°¸¥u½Í 1.44MB ªº¤T¤S¤G¤À¤§¤@^¦Tªº³nºÐ¤ù¡A¤£¹L¨ä¥L®æ¦¡ªº³nºÐ¤]¥i¨Ì¬Û¦Pªºì²z±À¾É¥X¨Ó¡C
¤£ºÞ¨º¤@ºØ³nºÐ¤ù¡A³£¬O¥Ñ¤@Ӷ콦¶ê½L¬°°ò©³¡A¨ä¤W¶î¤WÅKªº®ñ¤Æª«¬°ºÏ©Ê§÷®Æ¡A³oºÏ©Êª«½è¥i¥HÂÇ¥Ñ N ©Î S ·¥¨ÓÀx¦s¸ê®Æ¡A¥~±¦A®M¤W«OÅ@¶ì½¦¡A´N§Î¦¨³nºÐ¤ù¡C¦³¨Ç³nºÐ¤ù¦³¨â±¶î¤WºÏ©Êª«½è¡A¦Ó¦³¨Ç¥u¦³¤@±¶î¤WºÏ©Êª«½è¡A©ó¬O³y¦¨®e¶q¬Û®t¤@¿¡A¤£¹L²{¦b¤j·§¤]¶R¤£¨ì¥u¦³¤@±¥i¥Îªº³nºÐ¤ù¤F¡C¥Ñ©óºÏ¤ù¤Wªº¨C¤@±³£¥u¦³¤@ÓºÏÀY¨ÓŪ¼g¡A©Ò¥H³\¦h³nÅé©Î®Ñ¥»¤]ºÙºÏ¤ùªº¤@±¬°ºÏÀY (head )¡C
¦b¶î¤WºÏ©Êª«½èªº¨º¤@±¡A§ÚÌ¥i¥H§â·Q¹³¤W±¦³³\¦h³\¦hªº¦P¤ß¶ê¡AºÙ¤§¬°ºÏy ( track ¥çºÙ cylinder )¡C¨CÓºÏy¤S¦A¤À¦¨¼ÆÓ°Ï°ì¡AºÙ¤§¬°ºÏ°Ï ( sector )¡A¦Ó§ÚÌ©ÒÀx¦sªº¸ê®Æ´N¦s¦b³oºÏ°ÏùØ¡A¤£ºÞ¨º¤@ºØºÏ¤ù¡A¨CӺϰϳ£¥i¦s©ñ 512 Ӧ줸²Õ¡C¥H 1.44MB ºÏ¤ù¨Ó»¡¡A¥¦¦³¨â±¡A¨C¤@±¦³ 80 ÓºÏy¡A¨C¤@ºÏy¦³ 18 ӺϰϡA©Ò¥HÁ`¦@¥i¥H¦s©ñ 2*80*18*512 = 1474560 Ӧ줸²Õ¡C
¥Î¦ì¤¸²Õ¬°³æ¦ìpºâºÏ¤ù®e¶q¡AÅãµM·|¨Ï±o¼Æ¦r¤Ó¤j¦Ó¤£¤è«K¡A©Ò¥H§ÚÌ¥t¥~©w¸q¤F¨âÓ³æ¦ì KB »P MB¡A¤¤¤å¥iĶ¬°¤d¦ì¤¸²Õ»P¦Ê¸U¦ì¤¸²Õ¡A´«ºâ¤è¦¡¦p¤U¡G
1KB = 1024 ¦ì¤¸²Õ 1MB = 1024KB = 1048576 ¦ì¤¸²Õ
¦]¦¹³oÓ¤T¤S¤G¤À¤§¤@^¦Tªº³nºÐ¤ù¦@¦³ 1474560/1048576 = 1.44 MB¡C¤p¤ì°¸§â 1984 ¦~¨ì²{¦b³Ì±`¨£ªº¥|ºØºÏ¤ù¾ã²z¦p¤Uªí¡G
3.5 ^¦T 1.44MB |
5.25 ^¦T 1.2MB |
5.25 ^¦T 360KB |
5.25 ^¦T 320KB | |
®e¶q(¦ì¤¸²Õ) | 1474560 | 1228800 | 368640 | 327680 |
ºÏÀY¼Æ | 2 | 2 | 2 | 2 |
¨C±ºÏy¼Æ | 80 | 80 | 40 | 40 |
¨CºÏy¤§ºÏ°Ï¼Æ | 18 | 15 | 9 | 8 |
¨CºÏ°Ï¦ì¤¸²Õ¼Æ | 512 | 512 | 512 | 512 |
¤@¤ùºÏ¤ù¦b¹êÅé¤W¡A¤À¬°± ( ºÏÀY )¡BºÏy¡BºÏ°Ï¡C¥H 3.5 ^¦T 1.44MB ªººÏ¤ù¨Ó»¡¡A¦@¦³¨â±¡A²Ä 0 ±»P²Ä 1 ± ( ©ÎªÌ±z»¡²Ä 0 ºÏÀY»P²Ä 1 ºÏÀY¤]¦æ )¡A¦Ó¨C±¤S¤À¦¨ 80 ÓºÏy¡A¨ä½s¸¹¥Ñ²Ä 0 ºÏy¨ì²Ä 79 ºÏy¡A¨C¤@ºÏy¦A¤À¦¨ 18 ӺϰϡA¨ä½s¸¹¥Ñ²Ä 1 ºÏ°Ï¨ì²Ä 18 ºÏ°Ï¡C( ¦¹³B«Ü©_©Ç¡A¤@¯ë¹q¸£¤Wªº½s¸¹´X¥G³£¥Ñ¹s¶}©l¡A¥u¦³ª«²zºÏ°Ïªº½s¸¹¥Ñ¤@¶}©l¡C)
¥H¤W©Ò»¡ªººÏÀY¡NºÏy¡NºÏ°Ï³£¬Oª«²z¹êÅé¤Wªº©w¸q¡A¦ý¬O¦b DOS ªºªA°Èµ{¦¡ùØnŪ¨ú©Î¼g¤J¤@¨Ç¸ê®Æ®É¡A«o¤£¬O¨Ì·ÓºÏÀY¡NºÏy¡NºÏ°Ïªº¤è¦¡«ü©w¯S©wºÏ°Ï¡A¦Ó¬O¥H¬Y¤@ºØ½s±Æ¤è¦¡«ü©wºÏ°Ï¡C¥H 1.44MB ºÏ¤ù¬°¨Ò¡A¦b DOS ªº²´ùØ¡A§â²Ä 0 ±¡N²Ä 0 y¡N²Ä 1 ºÏ°Ï¬Ý¦¨¬O²Ä 0 ¸¹ºÏ°Ï¡A²Ä 0 ±¡N²Ä 0 y¡N²Ä 2 ºÏ°Ï¬Ý¦¨¬O²Ä 1 ¸¹ºÏ°Ï¡A²Ä 0 ±¡N²Ä 0 y¡N²Ä 3 ºÏ°Ï¬Ý¦¨¬O²Ä 2 ¸¹ºÏ°Ï¡A²Ä 0 ±¡N²Ä 0 y¡N²Ä 4 ºÏ°Ï¬Ý¦¨¬O²Ä 3 ¸¹ºÏ°Ï¡K¡K²Ä 0 ±¡N²Ä 0 y¡N²Ä 18 ºÏ°Ï¬Ý¦¨¬O²Ä 17 ¸¹ºÏ°Ï¡C±µ¤U¨Ó«o¤£¬O²Ä 0 ±¡B²Ä 1 y¡B²Ä 1 ºÏ°Ï¬°²Ä 18 ºÏ°Ï¡A¦Ó¬O²Ä 1 ±¡N²Ä 0 y¡N²Ä 1 ºÏ°Ï¬Ý¦¨¬O²Ä 18 ¸¹ºÏ°Ï¡A¬°¦ó³o¼Ë©O¡H¥Dnì¦]¬O¦Ò¼{ºÏÀY¦b¤£¦PºÏy¶¡²¾°Ê³t²v¸ûºC¡A¦Ó³nºÐ¾÷¤W¤U¦U¦³¤@ÓºÏÀY¤£¶·²¾°ÊºÏÀY¡A©Ò¥H¥ý§â¦P¤@yªººÏ°Ï¥Î§¹¦A²¾°Ê¨ì¤U¤@ºÏy¥i¤j´T´£°ª®Ä²v¡C±µ¤U¨Ó²Ä 1 ±¡N²Ä 0 y¡N²Ä 2 ºÏ°Ï¬Ý¦¨¬O²Ä 19 ¸¹ºÏ°Ï¡A²Ä 1 ±¡N²Ä 0 y¡N²Ä 3 ºÏ°Ï¬Ý¦¨¬O²Ä 20 ¸¹ºÏ°Ï¡K¡K²Ä 1 ±¡B²Ä 0 y¡B²Ä 18 ºÏ°Ï¬Ý¦¨¬O²Ä 35 ¸¹ºÏ°Ï¡C±µ¤U¨Ó«K¬O²Ä 0 ±¡N²Ä 1 y¡N²Ä 1 ºÏ°Ï¬Ý¦¨¬O²Ä 36 ¸¹ºÏ°Ï¡A¦p¦¹¤@ª½¨ì²Ä 1 ±¡N²Ä 79 y¡N²Ä 18 ºÏ°Ï¬Ý¦¨¬O²Ä 2879 ¸¹ºÏ°Ï¡A¹³³o¨Ç¥Õ¦âªººÏ°Ï½s¸¹¬O³sÄò©Êªº¡A¥Ñ 0 ¸¹¶}©l¨ì 2879 ¸¹¡AºÙ¤§¬°¡yÅÞ¿èºÏ°Ï¡z¡C¦b DOS ªA°Èµ{¦¡¤¤nŪ¨ú©Î¼g¤J³£¬O¥HÅÞ¿èºÏ°Ïªº¤è¦¡«ü©w¯S©wºÏ°Ï¡A¦Ó DOS ·|¦Û°ÊÀ°§Ú̺â¥X¦b²Ä´X±¡N²Ä´Xy¡N²Ä´XºÏ°Ï¡C¦³ÃöÅÞ¿èºÏ°Ïªº½s±Æ¤è¦¡¡A¦p¤U¹Ï¡G
³oӺϰϬO³nºÐ¤ù¤Wªº²Ä¹sÓÅÞ¿èºÏ°Ï¡A¦b³oӺϰÏùØ¥]§t¤F³\¦h³oÓ³nºÐªº¸ê°T¥H¤Î¤@¤p¬q±Ò°Êµ{¦¡¡C¦b³oӺϰϤ@¶}©l¬O¤@Ó¸õÅD«ü¥O¡A¸õ¨ì±Ò°Êµ{¦¡¤§³B°õ¦æ¡A¦Ó¦b¸õÅD«ü¥O¤§«áªº 8 Ӧ줸²Õ¬O®æ¦¡¤Æ³o¤ù³nºÐªº¼t°Ó¦WºÙ¡A±µ¤U¨Ó´N¬O³QºÙ¬° BPB ªº¤@¶ô°Ï°ì¡A¤p¤ì°¸§â«nªº¸ê®Æ¾ã²z¦¨¤Uªí¡G
¦ì§}½d³ò | ¤j¤p (¦ì¤¸²Õ) |
©Ò¥Nªí·N¸q |
00-02 | 3 | ¸õÅD«ü¥O |
03-0A | 8 | ¼t°Ó³nÅé¦W |
0B-0C | 2 | ¨C¤@ºÏ°Ïªº¦ì¤¸²Õ¼Æ |
0D | 1 | ¨C¤@ºÏÂO©Ò¦ûºÏ°Ï¼Æ |
0E-0F | 2 | FAT «eºÏ°Ï¼Æ¡A§Y BOOT ©Ò¦ûºÏ°Ï¼Æ |
10 | 1 | FAT Ó¼Æ |
11-12 | 2 | ®Ú¥Ø¿ý®e¶q |
13-14 | 2 | ÅÞ¿èºÏ°ÏÁ`¼Æ¡AY¬°¹s«h¦s©ó 20-23 |
15 | 1 | ³nºÐ¤ùºØÃþ |
16-17 | 2 | ¨CÓ FAT ©Ò¦ûºÏ°Ï¼Æ |
18-19 | 2 | ¨C¤@ºÏy¤§ºÏ°Ï¼Æ |
1A-1B | 2 | ºÏÀY¼Æ |
1C-1F | 4 | ÁôÂÃºÏ°Ï¼Æ |
20-23 | 4 | ¶W¹L 32MB µwºÐªºÅÞ¿èºÏ°ÏÁ`¼Æ |
Åý¤p¤ì°¸¥Î DENUG ¸ü¤J¤@¤ùè®æ¦¡¤Æ¡A§¹¥þ¨S¦³¦s©ñÀɮתº 1.44MB ºÏ¤ùÆ[¹î¬Ý¬Ý¡G
C:\WINDOWS>DEBUG [Enter] -L 100 0 0 1 [Enter] -D 100 L20 [Enter] 1B83:0100 EB 34 90 2A 3C 68 58 73-49 48 43 00 02 01 01 00 .4.*<hXsIHC..... 1B83:0110 02 E0 00 40 0B F0 09 00-12 00 02 00 00 00 00 00 ...@............
DEBUG ªº L «ü¥O¥i¥Î¨Ó¸ü¤JÅÞ¿èºÏ°Ï¡A100 ªí¥Ü¸ü¤J¦ì§}¡A²Ä¤@Ó¹sªí¥Ü A: ºÏºÐ¾÷¡A²Ä¤GÓ¹sªí¥Ün¸ü¤JªºÅÞ¿èºÏ°Ï½s¸¹¡A³Ì«á¤@Ӽƪí¥Ü¥Ñn¸ü¤JªºÅÞ¿èºÏ°Ï¼Æ¡C
¤p¤ì°¸¥Î¬õ¦â¼Ð¥X¨Óªº¤À§O¥Nªí¨C¤@ºÏ°Ïªº¦ì¤¸²Õ¼Æ¡NÅÞ¿èºÏ°ÏÁ`¼Æ¡N¨C¤@ºÏyªººÏ°Ï¼Æ¡NºÏÀY¼Æ¡AÅÞ¿èºÏ°ÏÁ`¼Æ¼¥H¨C¤@ºÏ°Ïªº¦ì¤¸²Õ¼Æ±o¨ìªº´N¬O³o±iºÏ¤ùªº®e¶q¡C±z¥i¥H·Q¹³²Ä 0BH ¦ì¤¸²Õ¨ì 23H ¦ì¤¸²Õ©Ò´£¨Ñªº¸ê®Æªí¥Ü¤F³oӺϤùªº«n°Ñ¼Æ¡A³o¨Ç¸ê®ÆºÙ¤§¬° BPB (BIOS parameter block)¡C·í DOS n±NºÏÀY¡NºÏy¡NºÏ°ÏÂà´«¦¨ÅÞ¿èºÏ°Ï½s¸¹©Î¬Oµ{¦¡³]p®v¼¶¼gµ{¦¡®É¡A³£±o§Q¥Î³o¤@°Ïªº°Ñ¼Æ¡C
ÁöµM DOS ¥i¥H¨C¦¸¥uŪ¼g¤@ӺϰϪº¸ê®Æ¡A¦ý¬O·í DOS n¼g¤J¤@Ó·s«ØªºÀɮ׮ɡA¬O¥HºÏÂO (cluster) ªº¤è¦¡¼g¤J¡A¤]´N¬O DOS ¬°·sÀÉ®×°t¸mºÏ¤ùªÅ¶¡¡A¬O¥ÎºÏÂO¬°³æ¦ì¡C¤@ÓºÏÂO¬O¥Ñ¼ÆÓ³sÄòªºÅÞ¿èºÏ°Ï²Õ¦¨¡A¨ä¤j¤p¬OÀHµÛºÏºÐ®e¶q¥H¤Î DOS ª©¥»¤£¦P¦ÓÅÜ¡C
¬°¤°»òn¦³ºÏÂO©O¡H¦Ó¤£ª½±µ¥ÎÅÞ¿èºÏ°Ï´N¦n¤F¡A³o¼Ë¤£¬O²³æ¤S¤è«K¶Ü¡Hì¦]¬O¦]¬°¦pªGn¼g¤J¤@ӫܤjªºÀɮסA°²¦p¥ÎºÏ°Ï¬°°t¸m¤è¦¡¡A¨ººÏ°Ï¼Æ´Nn«Ü¤j¡A¨Ã¥B¥i¯à´²¥¬¦b¹s´²ªºªÅ¶¡¡A°²¦p¥ÎºÏÂO¨Ó°t¸m³æ¦ìªº¸Ü¡A«hºÏÂO¼Æ¥Ø¥i¯à·|´î¤Ö (¦b 3.5 ^¦T³nºÐ¤W¬°¤@¥b)¡A©Ò¥H´²¶Ãªºµ{«×±N´î¤Ö¡A¤S¥Ñ©óºÏÂO¬O³sÄòªººÏ°Ï¡A©Ò¥HŪ¨ú®É¯à¥[§Ö³t«×¡C(µù¤@)
DOS ¬JµM¬O¥HºÏÂO¬°°t¸mÀɮתº³æ¦ì¡A©Ò¥H±zªºÀɮפ£ºÞ¤j¤p¦p¦ó¡A¥²©wn¦û¾Ú¡y¾ã¼Æ¡zÓºÏÂOªºªÅ¶¡¡C¥H 1.44MB ³nºÐ¤ù¬°¨Ò¡A¨CÓºÏÂO¬O¤@ÓºÏ°Ï ( ¥i¥Ñ BPB ±oª¾ )¡A°²¦p±zªºÀÉ®×¥u¦³¤@Ӧ줸²Õ¡A¨º¤]n 512 Ӧ줸²Õ¡C©³¤U¬O¤@±iè®æ¦¡¤Æªº 1.44MB ºÏ¤ù¡A¥ý¬Ý¬Ý³Ñ¾lªÅ¶¡¬O 1457664 Ӧ줸²Õ¡C
C:\>dir a: [Enter] Volume in drive A has no label Directory of A:\ File not found 1,457,664 bytes free C:\>copy con a:t123.txt [Enter] A^Z¡@¡÷«ö¦í Ctrl Á䤣©ñ¡A¦A«ö Z Áä 1 file(s) copied C:\>dir a: [Enter] Volume in drive A has no label Directory of A:\ T123 TXT 1 08-24-02 3:05 T123.TXT 1 file(s) 1 bytes 0 dir(s) 1,457,152 bytes free
·í§Ú·s«Ø¤@ÓÀɮסAT123.TXT¡A®É¡A¥¦´N¥Î¥h¤F 512 Ӧ줸²Õ ( 1457664-1457152=512 )¡AÁöµM¥¦¥u¦³¤@Ӧ줸²Õ¡C
¦b±Ò°ÊºÏ°Ï¤§«á¡Aºò±µµÛªº¬O°O¸üµÛ¬YÓÀɮצû¦³¨º´XÓºÏÂOªº¤@¶ô°Ï°ì¡AºÙ¤§¬°ÀÉ®×°t¸mªí ( FAT¡AFile Allocation Table )¡A·Q·íµM¦Õ¡A³oÓ FAT ¬O«Ü«nªº¡A¦pªG°O¸ü¤£¥¿½T¡AÀÉ®×´NµLªk¶¶§Q¦s¨ú¡A©Ò¥H DOS ¯S§O±N FAT ³]¬°¨âÓ¡A¨ÃÀH®ÉÀˬd³o¨â FAT ¬O§_¬Û¦P¡C
FAT ¤¤¤À¦¨«Ü¦hÄæ¦ì¡A¨ÌºÏ¤ù®e¶q¤£¦P¨CÓÄæ¦ì¤j¤p¤]¤£¦P¡A1.44MB ºÏ¤ùªº¨CÓÄæ¦ì¬O 12 ¦ì¤¸¡A¤]´N¬O 1.5 Ӧ줸²Õ¡A³o¨CÓÄæ¦ì³£¥NªíµÛ¤@ÓºÏÂO½s¸¹¡A¹³³o¼Ë¨CÓºÏÂO¦bÀÉ®×°t¸mªí¤¤©Ò¦ûªº½s¸¹¬O 12 Ӧ줸ªº¡A³oºØÀɮרt²ÎºÙ¬° FAT12¡C12 Ӧ줸¥u¯àªí¥Ü 0¡ã4095 ªº¼ÆÈ¡C´«¥y¸Ü»¡¡AºÏÂO½s¸¹¥u¯à±q 0 ¶}©l¨ì 4095¡A¦ý¹ê»Ú¤W¦©°£´XÓ¯S§Oªº½s¸¹¤£¥Î¤§¥~¡A¨Ò¦p·lÃaªººÏ°Ï¡Bµ²§ôºÏ°Ïµ¥µ¥¡A¤]¥u¯àªí¥Ü 4085 ÓºÏÂO½s¸¹¡An¬O®e¶q¤jªºµwºÐ¡A©Ò§tºÏÂO¼Æ¦h¡A´NµLªk¥u¥Î 12 Ӧ줸ªí¥Ü¡C( µù¤G )
²Ä¹sÓÄæ¦ì»P²Ä¤@ÓÄæ¦ì¦@ 3 Ӧ줸²Õ¬°¨t²Î¨Ï¥Î¡Cªº²Ä¹sÓÄæ¦ì¬Oªí¥Ü³o±iºÏ¤ùªººØÃþ¡A¦p¤Uªí¡G
FF0 | 1.44MB 3.5^¦T |
FF8 | µwºÐ |
FF9 | 1.2M 5.25^¦T©Î 720K 3.5^¦T |
FFD | 360K 5.25^¦T |
FFE | 160K 5.25^¦T |
FFF | 320K 5.25^¦T |
FAT ªº²Ä¤@ÓÄæ¦ì«O¯d¥¼¨Ï¥Î¡A¤@¯ë³£¬O FFFH¡C±q FAT ªº²Ä¤GÓÄæ¦ì (¤]´N¬O²Ä¤TӦ줸²Õ) ¶}©l¡A¨ä FAT Äæ¦ìªº¤º®e´Nªí¥ÜÀɮשҦû¥ÎªººÏÂO½s¸¹¡C¦¹³BÀ³ª`·N¡A1.44MB ºÏ¤ù¡A¦³¨âÓ FAT¡A¦Ó¨CÓ FAT ¦û¥Î 9 ӺϰϡA¥[¤W FAT «eÁÙ¦³¤@ӱҰʺϰϥH¤Î¥Ø¿ý©Ò¦û¥Îªº 14 ÓºÏ°Ï (µy«á»¡©ú)¡A©Ò¥H¹ê»Ú¤WºÏ¤ù¤W¬O±q²Ä 33 ӺϰϤ~¶}©l¦s©ñ¸ê®Æ¡C´«¥y¸Ü»¡¡AFAT ªº²Ä¤GÓÄæ¦ì¬O¥Nªí²Ä 33 ÓºÏÂO¡A²Ä¤TÓÄæ¦ì¬O¥Nªí²Ä 34 ÓºÏÂO¡A²Ä¥|ÓÄæ¦ì¬O¥Nªí²Ä 35 ÓºÏÂO¡K¡K¡C
¦Ó FAT Äæ¦ìùØ©Ò¦s©ñªº¤º®e¥i¥H¤À¦¨¤U±´XºØ±¡§Î¡G
000 | ªí¥Ü¦¹Äæ©Ò¹ïÀ³ªººÏÂO¨Ã¥¼¨Ï¥Î |
FF7 | ªí¥Ü¦¹Äæ©Ò¹ïÀ³ªººÏÂO¤w·lÃa¡A¤£¥i¨Ï¥Î |
FF8-FFF | ªí¥Ü¦¹Äæ©Ò¹ïÀ³ªººÏÂO¬°Àɮתº³Ì«á¤@ÓºÏÂO |
¨ä¥LÈ | ªí¥Ü¤U¤@ÓºÏÂO¼Ð¸¹©Ò¹ïÀ³ªº FAT Äæ¦ì |
©³¤U¥H´XÓ¨Ò¤l¨Ó»¡©ú FAT ¤º®e»PÀɮצs©ñºÏ°ÏªºÃö«Y¡C¥ý¬Ý¬Ýè®æ¦¡¤Æ¦Ó«á¥u«Ø¥ß¤@Ó T123.TXT ªº¨º¤@±iºÏ¤ù¡G
C:\WINDOWS>dir a: [Enter] Volume in drive A has no label Directory of A:\ T123 TXT 1 08-24-02 3:05 T123.TXT 1 file(s) 1 bytes 0 dir(s) 1,457,152 bytes free C:\WINDOWS>debug [Enter] -l 100 0 1 1 [Enter] -d 100 L30 [Enter] 1C6C:0100 F0 FF FF FF 0F 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
«e´XӦ줸²Õ¬O F0 FF FF FF 0F¡A·í DOS ¸ÑŪ³o¨Ç¼Æ¦r®É¡Anª`·N¨â¥ó¨Æ¡A¤@¬O¨CÓÄæ¦ìªº¦ì¤¸²Õ¼Æ¡A¥H 1.44MB ºÏ¤ù¨Ó»¡¬O 1.5 ¦ì¤¸²Õ¡F¤G¬O¤j¦ì¼Æn¦b°ª¦ì§}¡C¥Hè診±iºÏ¤ù¬°¨Ò¡A§ÚÌÀ³¸Ó§â¥¦¸ÑŪ¦¨¹³¤U±³o¼Ë¡G
¹Ï¤¤¤W¤è¯»¬õ¦âªº byte: «á±±µªº¼Æ¦r¬O¦ì¤¸²Õ½s¸¹ (¦ì§})¡A³Ì¤U¤èªº¯»¬õ¦âªº FAT: «á±µªº¼Æ¦rªí¥Ü FAT Äæ¦ì¡A³o¨âªÌ³£±q¹s¶}©l¡C
²Ä¹sÓ FAT ªºÄæ¦ì¬O²Ä¹sӦ줸²Õ (FAT ªº¨âÓ¸û§C¦ì§}¡A¦p¤W¹Ï¥ªÃ䪺¥Õ½u©Ò«üªº¨âÓ¼Æ) ¥H¤Î²Ä¤@Ӧ줸²Õªº§C¦ì§} (FAT ªº¸û°ª¦ì§}¡A¦p¤W¹Ï¥ªÃ䪺¦Ç½u©Ò«üªº¨º¤@Ó¼Æ)¡AFF0¡C²Ä¤@Ó FAT Äæ¦ìªº¤p¦ì¼Æ¬O²Ä¤@Ӧ줸²Õªº°ª¦ì§} (ÂŦâ½u©Ò«ü)¡A¤j¦ì¼Æ¬O²Ä¤GӦ줸²Õ (¤ÑÂŦâ©Ò«ü)¡A©Ò¥H²Ä¤GÓÄæ¦ì¬O FFF¡C²Ä¤GÓ FAT Äæ¦ì¬O FFF¡A¬O¥kÃ䪺¥Õ¦â½u©Ò«ü¡C
FATªº²Ä¹s¡N²Ä¤@ÓÄæ¦ì¬O¨t²Î©Ò¨Ï¥Î¡A²Ä¤GÓÄæ¦ì¬O T123.TXT ³oÓÀɮשҦû¾Ú¡A¦Ó³oÓÀÉ®×¥u¦û¤@ÓºÏÂO¡A©Ò¥H³oÓÄæ¦ì´N¬O FFF¡C±N¥¦¸ü¤J¬Ý¬Ý§a¡A·Óè誺Á¿ªk¡AT123.TXT ³oÓÀÉ®×À³¸Ó¦s©ñ¦b²Ä 33 ӺϰϪº¦a¤è¡A´«¦¨¤Q¤»¶i¦ì¬O 21H¡C
-l 200 0 21 1 [Enter] -d 200 L20 [Enter] 1C6C:0200 41 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 A............... 1C6C:0210 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ -q [Enter]
ªGµM´N¬O T123.TXT Àɪº¤º®e¡C¥ýÂ÷¶} DEBUG¡A§Ú̦A«þ¨©¤@Ó¸û¤jªºÀɮ׬ݬݡG
C:\WINDOWS>copy content.gif a: [Enter] 1 file(s) copied C:\WINDOWS>dir a: [Enter] Volume in drive A has no label Directory of A:\ T123 TXT 1 08-24-02 3:05 T123.TXT CONTENT GIF 1,059 05-05-99 22:22 CONTENT.GIF 2 file(s) 1,060 bytes 0 dir(s) 1,455,616 bytes free C:\WINDOWS>debug [Enter] -l 100 0 1 1 [Enter] -d 100 L30 [Enter] 1C6C:0100 F0 FF FF FF 4F 00 05 F0-FF 00 00 00 00 00 00 00 ....O........... 1C6C:0110 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0120 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................
CONTENT.GIF Àɦ³ 1059 Ӧ줸²Õ¡A¦]¦¹À³¸Ó¦û¦³ 3 ÓºÏÂO¡A±N³o¨Ç FAT Äæ¦ì¸ÑŪ¦p¤U¡G
«e¨âÓ¶À¦âªº FAT Äæ¦ìȬ°¨t²Î©Ò¨Ï¥Î¡A²Ä¤GÓ FAT Äæ¦ì¬O T123.TXT ©Ò¨Ï¥Î¡C
CONTENT.GIF ¦@¦û¾Ú¤TÓºÏÂO¡AÀ³¸Ó¨Ï¥Î²Ä¤T¡N¥|¡N¤³o¤TÓ FAT Äæ¦ì¡C²Ä¤@Ó¦û¾ÚªººÏÂO¬O²Ä 34 ÓºÏÂO (¨£«e±)¡A¤]´N¬O FAT ªº²Ä¤TÓÄæ¦ì¡A¦Ó³oÓÄæ¦ì¤º®eÀ³¸Ó«ü¦V¤U¤@ÓºÏÂO½s¸¹©Ò¹ïÀ³ªº FAT Äæ¦ì¡A¤]´N¬O²Ä¥|ÓÄæ¦ì¡A©Ò¥H²Ä¤TÓÄæ¦ì¤º®e¬° 004H¡C¦P¼Ëªº CONTENT.GIF ªº©Ò¦û¾Úªº²Ä¤GÓºÏÂO¬O²Ä 35 ºÏÂO¡A¤U¤@ÓºÏÂO¬O 36 ºÏÂO (¹ïÀ³ªº FAT Äæ¦ì¬O 005H)¡A©Ò¥H²Ä 35 ºÏÂO¹ïÀ³ªº FAT Äæ¦ì (¤]´N¬O²Ä¥|Äæ¦ì) ¤§¤º®e¬° 005H¡C¦Ó²Ä 36 ºÏÂO¤w¸g¬O³Ì«á¤@ÓºÏÂO¤F¡A©Ò¥H¨ä¤º®e´N¬O FFFH¡C
°²¦p§A@¤ß¬Ý§¹¥H¤W»¡©ú¡A¨Ã¥B¯àÁA¸Ñ¡A¨º¤p¤ì°¸·Q¡A±zÀ³¸Ó¯àÁA¸Ñ FAT ¨ä¹ê¬O¤@ÓÀɮצ걵ªí¡A¨C¤@Ó FAT Äæ¦ì³£«ü¦V¤U¤@Ó FAT Äæ¦ì¡A¦Ó³o¡y¤U¤@Ó¡zFAT Äæ¦ì¨ä¹ê¬O¹ïÀ³ªººÏÂO½s¸¹¡C²{¦b¥u³Ñ¤U¤@Ó°ÝÃD¤F¡AÀɮתº°_©l FAT ½s¸¹¦s©ó¦ó³B¡Hµª®×¦bÀÉ®×´yz°Ï¶ô¡C
®Ú¥Ø¿ý¬Oºò±µµÛ FAT «á±ªº¤@¶ô°Ï°ì¡A¦b±Ò°ÊºÏ°Ïªº²Ä 11¡ã12H ¦ì§}ùØ°O¸üµÛ®Ú¥Ø¿ý®e¶q¡A³oÓ®e¶q«üªº¬O®Ú¥Ø¿ý¤º³Ì¦h¥i¥H©ñ¦h¤ÖÓÀɮתº¸ê®Æ¡C¥H 3.5 ^¦T 1.44MB ºÏ¤ù¨Ó»¡¡A³Ì¦h¥i¥H°O¸ü00E0HÓÀɮתº¸ê®Æ¡A¤]´N¬O»¡°²¦p¶W¹L³oÓ½d³ò¡A§Y¨ÏºÏ¤ùÁÙ¦³ªÅ¶¡¡A¤]µLªk¦A¦s¤J¸ê®Æ¡A°£«D¬O¦s¦b¤l¥Ø¿ý¤º¡C
¨º®Ú¥Ø¿ý¦û¦h¤ÖӺϰϩO¡H¥H 1.44MB 3.5 ^¦TºÏ¤ù¬°¨Ò¡A¥¦ªº®Ú¥Ø¿ý¦û¦³ 0E0H Ó FDB¡A¦Ó¨CÓ FDB ¦³ 32 Ӧ줸²Õ¡A¦]¦¹®Ú¥Ø¿ý©Ò¦ûªººÏ°Ï¬° 32*0E0H/512=14 ӺϰϡC
®Ú¥Ø¿ýªº¤º®e¬O¥Ñ³\¦hµ§¸ê®Æ²Õ¦¨¡A¨C¤@µ§¸ê®Æ³£°O¸üµÛ®Ú¥Ø¿ý¤ºªºÀɮצWºÙ¡N«ØÀɤé´Á¡NÀɮפj¤p¡K¡KÁÙ¦³¸ÓÀɮץѲĴXÓºÏÂO¶}©lªº²Õ¦¨¡A³o¨C¤@µ§¸ê®Æ³£¬O¥Ñ 32 Ӧ줸²Õºc¦¨¡A¥¦´yz¤FÀÉ®×°ò¥»¸ê®ÆºÙ¤§¬°ÀÉ®×´yz°Ï¶ô ( FDB¡Afile description block )¡A¤Uªí»¡©ú³o 32 Ӧ줸²Õ©Ò¥Nªíªº·N¸q¡G
¤p¤ì°¸¥Hè誺ºÏ¤ù¬°¨Ò»¡©ú¡A1.44MB 3.5^¦TªººÏ¤ù³Ì«e±¬O¤@ӱҰʺϰϡA±µµÛ¬O¨âÓ FAT¡A¦Ó¨CÓ FAT ¦û¤F 9 ӺϰϡA¦A±µ¤U¨Ó¤~¬O®Ú¥Ø¿ý¡A©Ò¥H®Ú¥Ø¿ýÀ³¸Ó¥Ñ²Ä 13H Ӻϰ϶}©l¡G
-l 300 0 13 1 [Enter] -d 300 [Enter] 1C6C:0300 54 31 32 33 20 20 20 20-54 58 54 20 00 AD C5 13 T123 TXT .... 1C6C:0310 1D 2D 1D 2D 00 00 B9 18-18 2D 02 00 01 00 00 00 .-.-.....-...... 1C6C:0320 43 4F 4E 54 45 4E 54 20-47 49 46 20 00 63 E3 13 CONTENT GIF .c.. 1C6C:0330 1D 2D 1D 2D 00 00 C0 B2-A5 26 03 00 23 04 00 00 .-.-.....&..#... 1C6C:0340 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0350 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0360 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ 1C6C:0370 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 ................ -
¥H T123.TXT ¨Ó¬Ý¡A¥Ñ²Ä¹s¨ì²Ä 0AH Ӧ줸²Õ¬OÀɦW¡A¨ä¤¤¥DÀɦW¤£º¡ 8 Ó¦r¡A¥HªÅ¥Õ¶ñº¡¡C²Ä 0BH Ӧ줸²Õ¬OÀÉ®×ÄÝ©Ê¡A20H ¬dªí¥i±o¬O´¶³qÀɮסC±µ¤U¨Ó¡A¥Õ¦âªº®É¶¡³¡¥÷¡A 18 B9 ´«¦¨¤G¶i¦ì¬O 0001 1000 1011 1001 ¡A¨Ì®É¶¡Äæ¦ì»¡©ú¡A«ØÀɪº¡y®É¡z¬O 00011B¡A´«¦¨¤Q¶i¦ì¬O 3¡A§Yâ±á 3 ÂI¡A¤À¬O 000101B¡A´«¦¨¤Q¶i¦ì¬O 5¡A§Y 5 ¤À¡A¬í¬O 11001B¡A´«¦¨¤Q¶i¦ì¬O 25¡A¦A¼¥H 2 ±o 50 ¬í¡A©Ò¥H«ØÀɮɶ¡¬O 3 ÂI 5 ¤À 50 ¬í¡C
¦Ó¬õ¦â³¡¥÷¬O FAT «ü¦ì¾¹¡A¨äȬ° 0002 ªí¥Ü³oÓÀÉ®×¥Ñ FAT ªº²Ä¤GÓÄæ¦ì¶}©l¡A©ó¬O DOS ´N¨ì FAT ªº²Ä¤GÓÄæ¦ì¥h§äµo²{¬O FFF ©ó¬O DOS ´Nª¾¹D³oÓÀÉ®×¥u¦û¤@ÓºÏÂO¡A´N¬O 002 ©Òªí¥ÜªººÏÂO¡A§Y²Ä 33 ÓºÏÂO¡C¦A¥H CONTENT.GIF Àɬ°¨Ò¡A¥¦ªº FAT «ü¦ì¾¹¬O 003¡A©ó¬O DOS ¨ì FAT ªº²Ä¤TÄæ¥h§äµo²{¸ÓÄ檺ȬO 004¡A©Ò¥H DOS ¤S¨ì²Ä¥|Äæ§ä¡A²Ä¥|Ä檺ȬO 005¡A¤S¨ì²Ä¤Äæ¥h¬Ý¡A²Ä¤Äæ¬O FFF¡Aªí¥Ü²Ä¤Äæ¬O³Ì«á¤@ÓºÏÂO¡A¦Ó¸ÓÀɦû¦³²Ä 003¡N004¡N005 ¤TÓºÏÂO¡C(°Ñ¦Ò«e¹Ï)
³o¤@³¹¤º®e¤]¬Û·í±o¦h¡A¤×¨ä¬O FAT ªºµ²ºc§ó¬O½ÆÂø¡A«Ý¤U¤@³¹¤p¤ì°¸¥´ºâ¤¶²ÐÓµ{¦¡¡AŪ¨ú FAT ¨Ã¥B§â¾ã±iºÏ¤ù©Ò¨Ï¥ÎªºªÅ¶¡¥Î°Ï¶ôªº¤è¦¡¡yµe¡z¦b¿Ã¹õ¤W¡C
µù¤@¡GDOS ¤À°tÀɮ׮ɬO¦³ªÅ¶¡´N¨Ï¥Î¡A©Ò¥H°²¦p±z¦b¤@±i·sºÏ¤ù¤¤¨Ì§Ç¥Ñ§O³B«þ¨© A¡NB¡NC ¤TÓÀɮסA¦Ó«á¨Ó±z§R¥h¤F B ÀɮסA©ó¬O B ÀÉ®×ì¥ý¦û¾Úªº¦a¤èÅܦ¨¥i¥H¦A³Q§Q¥Î¡C·í±z¦A«þ¨©¤@Ó¤jÀÉ®× D¡A³o®É DOS ¬Ý¨ìì¥ý B ÀÉ©Ò¦û¾ÚªºªÅ¶¡¥i³Q§Q¥Î¡A©Ò¥H D Àɮתº«e¥b¬q«K¦b B ÀÉ®×ì¥ýªºªÅ¶¡¡A«á¥b¬q«K¦b C Àɮפ§«áªºªÅ¶¡¡A©ó¬O³y¦¨´²¶Ã¡C·íÀɮפ£Â_ªº§R°£¡N«Ø¥ß¡A³oºØ±¡§Î·|¶V¨Ó¶VÄY«¡A¦pªG¤@ÓÀɮפÀ´²¦b¦U³B¡A¨ºÅª¨ú®ÉºÏÀY±o²¾°Ê¨ì¦U³B¡AŪ¨ú®É·|Åܱo«ÜºC¡A©Ò¥H¦³³\¦h¼t°Ó´Nµo®i¥X«²ÕºÏºÐªºµ{¦¡¡C
µù¤G¡GµwºÐ®e¶q¤ñ³nºÐ®e¶q¤j±o¦h¡A©Ò¥HºÏÂO¼Æ¥ØÅܱo«Ü¦h¡A12 ¦ì¤¸µLªk®e¯Ç±o¤U©Ò¦³½s¸¹¡A³o®É´N±o¥Î 16 ¦ì¤¸ªøªºÄæ¦ì¨Óªí¥ÜºÏÂO½s¸¹¡AºÙ¬° FAT16¡A¨CÓ FAT Äæ¦ì¦û¥Î 16 ¦ì¤¸¡A³Ì¦h¥i¥H¥Ñ 0¡ã65535 ¦@ 65536 ÓºÏÂO¡A¦ý¬O¦©°£¤@¨Ç«O¯dªº³¡¥÷¡A¥u¯à¥Î 65525 ÓºÏÂO½s¸¹¡Cn¬O¶W¹L³oÓ¼ÆÈ¡A´N±o¥Î 32 ¦ì¤¸ªí¥ÜºÏÂO½s¸¹¤F¡A´NºÙ¬° FAT32¡C
FAT12¡BFAT16¡BFAT32 ªº¤ñ¸û¡G