Asuro/doc/flatfs.md
2022-01-29 20:05:11 +00:00

681 B

#Flat filesystem

A super simple filesystem for asuro. Folders are emulated in filenames.

Starts with disk info sector, sector 0 of volume


disk info

jmp2boot : ubit24; OEMName : array[0..7] of char; version : uint16 // numerical version of filesystem sectorCount : uint16; fileCount : uint16 signature : uint32 = 0xABAB1F1E

the Rest of the sector is reserved


Starting from sector 1 is the file table. Table size is determined by entry size (512) * fileCount


####File entry

name : array[0..59] of char //file name max 60 chars fileStart : 16bit // start sector of data fileSize : 16bit // data size in sectors