DOS 2 File System
|bit 0||Opened for output|
|bit 5||File locked|
|bit 6||File in use|
|bit 7||File deleted|
|$01-$02||Number of sectors in file (little endian)|
|$03-$04||Starting sector of file (little endian)|
|$05-$0C||Filename (padded by spaces)|
|$0D-$0F||Extension (padded by spaces)|
Sector 720 cannot be accessed with DOS 2.0
First 125 bytes of sector contain data. Byte 126 contains file number in high six bits. Byte 127 and low two bits of byte 126 contain forward pointer. Byte 128 contains number of bytes in sector, highest bit flags end of file.
DOS 3 File System
Boot sectorSectors $01-$09 is boot sector.
$0A-$0F are empty.
Directory$10-$17 are directory. I don't know what's first entry, containing $0E empty bytes and $7F $A5 at the end (for MD) and $57 $A5 for SD.
|$01-$08||Filename (padded by spaces)|
|$09-$0B||Extension (padded by spaces)|
|$0C||Number of blocks (8 sectors)|
|$0E-$0F||Length of file in bytes|
FATSector $18 is FAT. Maximum number of blocks that could be allocated is $7F.
- $FF - can't be allocated
- $FE - free
- $FD - eof
- other - link to other block
This format is just guessed.
(c) 1998-2004 Jindroush