?? fatinit.c
字號:
#ifndef _FAT_DEFINE
#include "FAT.c"
#endif
void FATInit(void);
void FATInit(void)
{
register BYTE i;
DPT = (struct DPTStr *)(DiskBuffer+0x1be); //分區表結構指針
BOOTSEC = (struct BootSecStr *)(DiskBuffer); //引導扇區結構指針
FSI = (struct FAT32FSInfoStr *)(DiskBuffer); //FAT32擴展信息
sDIR = (struct FATSDirStr *)(DiskBuffer); //FAT目錄結構指針
lDIR = (struct FATLDirStr *)(DiskBuffer); //FAT目錄結構指針
for(i=0;i<FAT_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 + -