FYI, I have confirmed that it is the same formula for dealing with entries in the FAT.mark3094 wrote:Is this formula still relevant?
Thank you all
FYI, I have confirmed that it is the same formula for dealing with entries in the FAT.mark3094 wrote:Is this formula still relevant?
For FAT16 next cluster number is held in the word at FAT1Pos+2*ClusterNumber, where 2 is a FAT cell size. To get next cluster number for FAT12 you should use a specific algorithm.mark3094 wrote:Just want to check, is this the same formula that I should use when I get the next cluster in the chain from the FAT?
Firstly you should use filesize field. But don't forget that if filesize value is not zero you should check the cluster number before reading the cluster: 1<ClusterNumber<xFF6h (minimal support), or 1<ClusterNumber<ClusterCount+2 (advanced support). Additionally you can check last cluster cell for EOF mark (>xFF7h). To control the size of the directories you should use LastDirEntry mark and EOF mark while the size is less than 2 mb.What's the best way to check for EOF?