All times are UTC - 5 hours [ DST ]


Forum rules


Please do not post questions about data recovery cases here (use this forum instead). This forum is for topics on finding new ways to recover data. Accessing firmware, writing programs, reading bits off the platter, recovering data from dust...



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: IDENTIFY DEVICE
PostPosted: October 7th, 2014, 15:42 
Offline

Joined: October 7th, 2014, 15:31
Posts: 1
Location: Brazil
I want issue a command IDENTIFY DEVICE 0xEC to a SATA controller but something weird happen. Here is my code:
Code:
MOV DX,BAR4
MOV AL,0x27
OUT DX,AL
ADD DX,4
MOV AX,0xEC
OUT DX,AL
ADD DX,5
XOR AX,AX
OUT DX,AL
SUB DX,6
MOV AX,1
OUT DX,AL
SUB DX,3
MOV AX,0x5F
OUT DX,AL
ADD DX,0x14
MOV AX,0x200
OUT DX,AX
MOV AX,0x46
SUB DX,0x14
OUT DX,AL
ADD DX,4
MOV CX,0x100
MOV DI, OFFSET Buf
REP INSW
RET

Where is my error?


Top
 Profile  
 
 Post subject: Re: IDENTIFY DEVICE
PostPosted: October 7th, 2014, 17:34 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15525
Location: Australia
The following thread may be of interest to you.

Writing/reading a drive's firmware yourself:
viewtopic.php?f=13&t=26971

_________________
A backup a day keeps DR away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group