?? fat32init.c
字號:
#ifndef _FAT32_DEFINE
#include "FAT32.c"
#endif
void FAT32Init(void);
void FAT32Init(void)
{
register BYTE i;
DPT = (struct DPTStr *)(DiskBuffer+0x1be); //分區表結構指針
BOOTSEC = (struct BootSecStr *)(DiskBuffer); //引導扇區結構指針
FSI = (struct FAT32FSInfoStr *)(DiskBuffer); //FAT32擴展信息
sDIR = (struct FAT32SDirStr *)(DiskBuffer); //FAT目錄結構指針
lDIR = (struct FAT32LDirStr *)(DiskBuffer); //FAT目錄結構指針
for(i=0;i<FAT32_MAX_FCB;i++)
{
FCB[i].FileName[0]=0;
FCB[i].Size=0;
FCB[i].FirstCluster=0;
FCB[i].LastCluster=0;
FCB[i].ClusSecCnt=0;
FCB[i].ByteCnt=0;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -