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

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
SCSoft
Posts: 11
Joined: Tue Jan 31, 2006 12:00 am

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

Post 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...
Last edited by SCSoft on Thu Feb 23, 2006 12:00 am, edited 1 time in total.
robert macabre
Member
Member
Posts: 26
Joined: Fri Nov 18, 2005 12:00 am
Location: a perfect view out of the novotel

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

Post 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]
Last edited by robert macabre on Thu Feb 23, 2006 12:00 am, edited 1 time in total.
laika, come home.
SCSoft
Posts: 11
Joined: Tue Jan 31, 2006 12:00 am

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

Post by SCSoft »

Thank you
Post Reply