NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: nobody on September 14, 2006, 06:53:49 PM

Title: Use hard disk directly
Post by: nobody 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
Title: Re: Use hard disk directly
Post by: nobody 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://www.t13.org) http://ata-atapi.com/products/htm (http://ata-atapi.com/products/htm) http://en.wikipedia.org/wiki/ATAPI (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
Title: Re: Use hard disk directly
Post by: GeirGrusom 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 (http://www.inversereality.org/files/dmaprogramming.pdf) could be a start.