Switch to full style
In-depth technology research: finding new ways to recover data, accessing firmware, writing programs, reading bits off the platter, recovering data from dust.

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 a reply

IDENTIFY DEVICE

October 7th, 2014, 15:42

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?

Re: IDENTIFY DEVICE

October 7th, 2014, 17:34

The following thread may be of interest to you.

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