Floppy disk driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Krisu

Floppy disk driver

Post by Krisu »

How can I use fat12 in protect mode? Does somebody have some example code?
Curufir

Re:Floppy disk driver

Post 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.
Post Reply