How to rw harddisk in pmode?
Posted: Wed May 11, 2011 8:16 pm
Hi,
I'm trying to develop an IDE/ATA Driver for my OS and I need write and read byte/word in the harddisk (very easy. I don't need access to the FAT, I only need write a byte and read that byte).
The question is how to rw in pmode? any simple example? I cant use ints 13h, etc.
I read this thread and I tested the asm code: http://forum.osdev.org/viewtopic.php?t=12268 but it uses int13h, int 20h, etc.
Im using nasm / ansi c / bochs
(standard intel instructions)
PD: I also read that I could switch to real mode, but its very slow.
I'm trying to develop an IDE/ATA Driver for my OS and I need write and read byte/word in the harddisk (very easy. I don't need access to the FAT, I only need write a byte and read that byte).
The question is how to rw in pmode? any simple example? I cant use ints 13h, etc.
I read this thread and I tested the asm code: http://forum.osdev.org/viewtopic.php?t=12268 but it uses int13h, int 20h, etc.
Im using nasm / ansi c / bochs
(standard intel instructions)
PD: I also read that I could switch to real mode, but its very slow.