I am tring to port Therx floppy driver to my OS, but I could not get it work :-[ . Therefore I have attached the source code, so that you may be found something wrong in it.
with "bochs" the floppy driver "led" doesn't lighting, when I run the motor. but when I use my real computer it does. but I can not read any sector!.
could you help me?
note:
there is some korintf for my debuging infos.
[attachment deleted by admin]
Writing Floppy disk driver ?
Re:Writing Floppy disk driver ?
Unless you adjusted your IRQ 0 timer to 100Hz all the delays will be too large. In the timeout values which depend on the IRQ 0 (int1c) countdown you need to divide by 1000 then times by 36 to adapt it for the standard 18.2Hz. I seem to recall that some things always timeout so this is crucial. If you want to see Fabien Numez's original code it's also available from my site
If you want to try writing your own driver (I did but failed) there is always Deb Wiles datasheet
If you want to try writing your own driver (I did but failed) there is always Deb Wiles datasheet
Re:Writing Floppy disk driver ?
I have change my timer with variables values, but still does not work. when I send version command, I receive the result and when I send a motoron, my IRQ6 handler receive the interrupt from the floppy controller, but when I tried to read ... timeout ???.