Author Topic: Use hard disk directly  (Read 9230 times)

nobody

  • Guest
Use hard disk directly
« on: September 14, 2006, 06:53:49 PM »
Hi!

I started to develop an operating system in assembly, and I'm in need to use the hard disk directly even without the int 13h. If anyone of you could help me out with a link where I can find a useful documentation about this I would be very thankful.
    TorokG

nobody

  • Guest
Re: Use hard disk directly
« Reply #1 on: September 14, 2006, 09:40:06 PM »
Hi Torok,

The IDE controller is at port 1F0h (primary) or 170h (secondary). See "ports.lst" from Ralf Brown's Interrupt List for details...

More of an OS development question than a Nasm question. Check out news:alt.os.development - recent answers to a similar question include http://www.t13.org http://ata-atapi.com/products/htm http://en.wikipedia.org/wiki/ATAPI

For some other type of drive... and to detect what you *have* got... poke around a.o.d and the links you'll find there. Your fellow OS developers are about the only ones who know (or care) about this stuff. (Linux... etc... source code might be helpful, too!)

Best,
Frank

GeirGrusom

  • Guest
Re: Use hard disk directly
« Reply #2 on: March 30, 2007, 08:17:19 PM »
You should probably look into the DMA controller as well.
http://www.inversereality.org/files/dmaprogramming.pdf could be a start.