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.
Floppy Driver
Re:Floppy Driver
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..
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.
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..
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.
Re:Floppy Driver
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 .
@bubach, floppy drivers are not supposed to work with the floppy motor off .
Re:Floppy Driver
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.