Page 1 of 1

IDE DRIVE NUMBER

Posted: Sun Dec 12, 2004 3:07 pm
by os_ambition
HELLO ,

I am experimenting on my hard drive which is connected to IDE secondary master. My problem is what value should I put in the second line of code below. The code below is part of IDE driver that I was experimenting.

mov dx,1f6h ;Drive and head port
mov al,0a0h ;Drive 0, head 0
out dx,al


Thank you very much in advance

Re:IDE DRIVE NUMBER

Posted: Mon Dec 13, 2004 10:44 am
by Pype.Clicker
what about checking out the T13 document about AT Attachment and read about registers encoding ??



http://www.t13.org/docs2002/d1410r3b.pdf

esp. i suggest you read section 7.7 (Device register) and section 8.34 (read sector(s))...