hello,
my goal is to design a SD interface from ground that support MMC/SD/SDHC and more than 2gigs, and it works in fat12 for the moment and in dos1 ( diskrom 16kb ) with mmc/sd.
then i wonder how fat16 work , i understand that command2.com has to be modified so it can
understand FAT16 description on the disk, but in order to go beyond 32megs i believe the diskrom has to be modified also.
So what i dont understand is also the sector numbering in the physical routine for
sector r/w is specified for sector number on 16bits ( on register de ).
So with 512byte per sector that makes 32megs, only.
Should i deal with bigger sectors in 16bits numbering by modifying the media descriptor for the disk ?
or deal with 512byte sector with more than 16bits for r/w routine ( in that case fat16 may not be enough and fat32 is required ? )
if i modify r/w routine to take 24 bits sector number and modify command.com accordingly , i must define these routines on other entry points , i wonder how compatible is this , would it only work with my modified command.com ?
any clue ??

, very user-unfriendly, and a (big!) unnecessary duplication of effort.
), but it's essentially the same thing: FAT12 -> 12 bits/FAT entry -> max. just under 2^12 FAT entries, with each FAT entry referring to a cluster of [sectors/cluster] sectors. FAT16 -> 16 bits/FAT entry -> just under 2^16 FAT entries. Etcetera...
Haven't we had this discussion before (disk driver workspace)?