Page 1 of 1

[Help Me] How to control the floppy to read a sector?

Posted: Thu Feb 23, 2006 12:00 am
by SCSoft
How to initialize the floppy?
How to control the floppy to read a sector? (use i/o port , my kernel is in protect mode)

I want to know the steps to do them...

Re: [Help Me] How to control the floppy to read a sector?

Posted: Thu Feb 23, 2006 12:00 am
by robert macabre
three documents helped me out tremendously:

http://www.mega-tokyo.com/osfaq2/index.php/DMA
http://bos.asmhackers.net/docs/floppy/d ... torial.txt
http://www.isdaman.com/alsos/hardware/fdc/floppy.htm

the DMA isn't 100% necessary unless you plan on using DMA. i'm not going to go into the pros and cons about DMA here, though because i don't feel like i know enough to advise you one way or another.

the last two links kind of go hand in hand. i read the last one first, and then i read the second one. if i hadn't read them in that order it might not have made sense to me. the last link is a great documentation of a lot of the floppy controller's ports, commands, interrupts, etc. oh, and the anchor links on that last one don't work because it's not the original location of the page. the information is still great, though.

hope that helps.[/url]

Re: [Help Me] How to control the floppy to read a sector?

Posted: Fri Feb 24, 2006 12:00 am
by SCSoft
Thank you