FAT12
Posted: Thu Mar 05, 2009 10:06 pm
So I've read the official Microsoft FAT documentation and its time for me to make use of it via int 13.
Although, I've run into some confusion.
I get Sector 19 from this equation, although that doesn't work.
While coding there was a typo and I put sector 18, which coincidentally worked, just before that fat equation, the documentation mentions that this value is relative to the first sector, does that mean - 1 since the first sector is 1?
Although, I've run into some confusion.
Code: Select all
FirstRootDirSecNum = BPB_ResvdSecCnt + (BPB_NumFATs * BPB_FATSz16);
While coding there was a typo and I put sector 18, which coincidentally worked, just before that fat equation, the documentation mentions that this value is relative to the first sector, does that mean - 1 since the first sector is 1?
If someone could clue me in I'd really appreciate it. I'd like full floppy support in my OS!For FAT12 and FAT16 media, the first sector of the root directory is sector number relative to the first sector of the FAT volume: