Anonymous user
FAT: Difference between revisions
→Reading Directories
[unchecked revision] | [unchecked revision] |
Line 551:
After the correct cluster has been loaded into memory, the next step is to read and parse all of the entries in it. Each entry is 32 bytes long. For each 32 byte entry this is the flow of execution:
#
#
# Is this entry a long file name entry? If the 11'th byte of the entry equals 0x0F, then it is a long file name entry. Otherwise, it is not. Yes, goto number 4. No, goto number 5.
# Read the portion of the long filename into a temporary buffer.
# Parse the data for this entry using the table from further up on this page. It would be a good idea to save the data for later. Possibly in a virtual file system structure. goto number
#
# Apply the long file name to the entry that you just read and clear the temporary buffer. goto number 9
# Increment pointers and/or counters and check the next entry. (goto number 1)
|