Page 1 of 1
Floppy disk driver
Posted: Tue Mar 04, 2003 6:31 am
by Krisu
How can I use fat12 in protect mode? Does somebody have some example code?
Re:Floppy disk driver
Posted: Tue Mar 04, 2003 11:31 am
by Curufir
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.