Floppy 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.
Dex4u

Re:Floppy Driver

Post by Dex4u »

Here is the floppy driver, its fully self contained all you need do is point it to you timer and floppy irq and a 512byte dma buffer, its commented to be compared with the above Intel floppy manuals per-do code.
http://www.dex4u.com/FloppyDriver.zip

The only thing missing is floppy write, but its the same as floppy read other than the command you send.
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Floppy Driver

Post by bubach »

The floppy sure is a funny thing to program.. For some, it might seem as easy as 1,2,3 while it to others is a hell.
I've had some problems. For example I couldn't get dex4u's driver to work without modifications, and the current driver in BOS 0.04 won't work if I turn the floppy motor off and later turn it back on again.. :P
I think i'm getting closer to a stable driver by now, but you can never be to sure about it. Sometimes it just seem to break all logic. :P
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Dex4u

Re:Floppy Driver

Post by Dex4u »

Compeared to making a ATAPI driver, floppy are easy, but its the fat12 that is a pain, not hard just a pain (and i know it not part of the floppy driver, but some people mix the two up.).

@bubach, floppy drivers are not supposed to work with the floppy motor off :P .
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Floppy Driver

Post by bubach »

Ehm, ok so that sounded wierd. What I meant is that if i _ever_ turned it off, I could mot read from it.. And yes, i did turn it back on before trying to read from the floppy.
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
Post Reply