Page 1 of 1
Floppy Problem
Posted: Fri Jun 02, 2006 10:25 pm
by Tolga
Hi all. I wrote a floppy controller header file. But when i readed main status register, always it is returning 0 value. Is it want initializing? What is the problem? My document is showing port number 0x03F4.
Re:Floppy Problem
Posted: Sat Jun 03, 2006 1:53 pm
by Dex4u
How much time do you loop, before time out ?.
Re:Floppy Problem
Posted: Sat Jun 03, 2006 10:44 pm
by Tolga
For send a command, i write this code:
while( floppy.is_ready_for_command() == false )
{}
is_ready_for_command reads "main status register" and returns status. But this is locking computer.
Re:Floppy Problem
Posted: Sun Jun 04, 2006 6:57 am
by Dex4u
I do not use C, but if you compear your code to my asm (which is commented to go with intel floppy controler pdf.
may help ?.
http://www.dex4u.com/images/FloppyDriver.zip