Floppy Problem

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
Tolga

Floppy Problem

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

Re:Floppy Problem

Post by Dex4u »

How much time do you loop, before time out ?.
Tolga

Re:Floppy Problem

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

Re:Floppy Problem

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