Subversion Repositories Kolibri OS

Rev

Rev 3500 | Rev 3725 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3500 Rev 3555
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 3500 $
8
$Revision: 3555 $
9
 
9
 
10
 
10
 
Line 107... Line 107...
107
 
107
 
108
    cli
108
        cli
109
        xor     eax, eax
109
        xor     eax, eax
110
        mov     edx, [hdbase]
110
        mov     edx, [hdbase]
111
    inc   edx
111
        inc     edx
112
        out     dx, al; ATAFeatures ॣ¨áâà "®á®¡¥­­®á⥩"
112
        out     dx, al; ATAFeatures регистр "особенностей"
113
    inc   edx
113
        inc     edx
114
    inc   eax
114
        inc     eax
115
        out     dx, al; ATASectorCount áçñâ稪 ᥪâ®à®¢
115
        out     dx, al; ATASectorCount счётчик секторов
116
    inc   edx
116
        inc     edx
117
        mov     eax, [esp+4]
117
        mov     eax, [esp+4]
118
        out     dx, al; ATASectorNumber ॣ¨áâà ­®¬¥à  ᥪâ®à 
118
        out     dx, al; ATASectorNumber регистр номера сектора
119
        shr     eax, 8
119
        shr     eax, 8
120
    inc   edx
120
        inc     edx
121
        out     dx, al; ATACylinder ­®¬¥à 樫¨­¤à  (¬« ¤è¨© ¡ ©â)
121
        out     dx, al; ATACylinder номер цилиндра (младший байт)
122
        shr     eax, 8
122
        shr     eax, 8
123
    inc   edx
123
        inc     edx
124
        out     dx, al; ­®¬¥à 樫¨­¤à  (áâ à訩 ¡ ©â)
124
        out     dx, al; номер цилиндра (старший байт)
125
        shr     eax, 8
125
        shr     eax, 8
126
    inc   edx
126
        inc     edx
127
        and     al, 1+2+4+8
127
        and     al, 1+2+4+8
128
        add     al, byte [hdid]
128
        add     al, byte [hdid]
129
        add     al, 128+64+32
129
        add     al, 128+64+32
130
        out     dx, al; ­®¬¥à £®«®¢ª¨/­®¬¥à ¤¨áª 
130
        out     dx, al; номер головки/номер диска
131
    inc   edx
131
        inc     edx
132
        mov     al, 20h
132
        mov     al, 20h
133
        out     dx, al; ATACommand ॣ¨áâà ª®¬ ­¤
133
        out     dx, al; ATACommand регистр команд
Line 134... Line 134...
134
    sti
134
        sti
Line 135... Line 135...
135
 
135