fat16文件系统DBR
宏定义如下:
#define BS_JmpBoot 0 //跳转指令。3字节。/* x86 jump instruction (3-byte) */
#define BS_OEMName 3 //OEM名称。8字节。/* OEM name (8-byte) */
#define BPB_BytsPerSec 11 //扇区字节数。2字节。/* Sector size [byte] (WORD) */
#define BPB_SecPerClus 13 //每蔟扇区数。1字节。/* Cluster size [sector] (BYTE) */
#define BPB_RsvdSecCnt 14 //保留扇区数。2字节。/* Size of reserved area [sector] (WORD) */
#define BPB_NumFATs 16 //FAT表个数。1字节。/* Number of FATs (BYTE) */
#define BPB_RootEntCnt 17 //FAT32必须为0,FAT12/16为fat表中根目录区域大小。2字节。/* Size of root directory area for FAT [entry] (WORD) */
#define BPB_TotSec16 19 //FAT32必须为0,FAT12/16为卷大小。2字节。/* Volume size (16-bit) [sector] (WORD) */
#define BPB_Media 21 //介质描述符。1字节。/* Media descriptor byte (BYTE) */
#define BPB_FATSz16 22 //FAT32必须为0,FAT12/16为fat表占用的扇区数。2字节。/* FAT size (16-bit) [sector] (WORD) */
#define BPB_SecPerTrk 24 //每磁道扇区数。2字节。/* Number of sectors per track for int13h [sector] (WORD) */
#define BPB_NumHeads 26 //磁头数。2字节。/* Number of heads for int13h (WORD) */
#define BPB_HiddSec 28 //隐藏扇区数,卷在磁盘中的偏移量,用扇区个数表示。/* Volume offset from top of the drive (DWORD) */
#define BPB_TotSec32 32 //总扇区数,单位为扇区。/* Volume size (32-bit) [sector] (DWORD) */
#define BS_DrvNum 36 //BIOS驱动器号/* Physical drive number for int13h (BYTE) */
#define BS_NTres 37 //win nt错误标志。/* WindowsNT error flag (BYTE) */
#define BS_BootSig 38 //扩展引导标志。/* Extended boot signature (BYTE) */
#define BS_VolID 39 //卷序列号。/* Volume serial number (DWORD) */
#define BS_VolLab 43 //卷标。/* Volume label string (8-byte) */
#define BS_FilSysType 54 //文件系统类型字符串。/* Filesystem type string (8-byte) */
#define BS_BootCode 62 //启动代码。448字节。/* Boot code (448-byte) */