Floppy disk driver
Floppy disk driver
How can I use fat12 in protect mode? Does somebody have some example code?
Re:Floppy disk driver
Fat12 is a filesystem. Essentially a filesystem is nothing more than a big blueprint that tells the person trying to access the data how to read/write to the disk in a consistent manner.
Ok, back on topic. Once you can access the floppy drive via the ports, all the algorithms for reading/writing to a fat12 disk are exactly the same as they would be in real mode. Take a look at some of the fat12 bootsectors, they'll have the relevant algorithms in their code. The hard part is the floppy disk control, the fat12 stuff is trivial.
Ok, back on topic. Once you can access the floppy drive via the ports, all the algorithms for reading/writing to a fat12 disk are exactly the same as they would be in real mode. Take a look at some of the fat12 bootsectors, they'll have the relevant algorithms in their code. The hard part is the floppy disk control, the fat12 stuff is trivial.