Subversion Repositories Kolibri OS

Rev

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

Rev 5363 Rev 6464
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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: 5363 $
8
$Revision: 6464 $
9
 
9
 
10
;-----------------------------------------------------------------------------
10
;-----------------------------------------------------------------------------
11
;**********************************************************
11
;**********************************************************
Line 453... Line 453...
453
SendCommandToHDD_1:
453
SendCommandToHDD_1:
454
; Проверить значение кода режима
454
; Проверить значение кода режима
455
        cmp     [ATAAddressMode], 1
455
        cmp     [ATAAddressMode], 1
456
        ja      @@Err2_4
456
        ja      @@Err2_4
457
; Проверить корректность номера канала
457
; Проверить корректность номера канала
458
        mov     bx, [ChannelNumber]
458
        movzx   ebx, [ChannelNumber]
459
        cmp     bx, 1
459
        dec     ebx
460
        jb      @@Err3_4
-
 
461
 
-
 
462
        cmp     bx, 2
460
        cmp     ebx, 1
463
        ja      @@Err3_4
461
        ja      @@Err3_4
464
; Установить базовый адрес
462
; Установить базовый адрес
465
        dec     bx
-
 
466
        shl     ebx, 2
463
        shl     ebx, 2
467
        movzx   ebx, bx
-
 
468
        mov     eax, [cdpos]
464
        mov     eax, [cdpos]
469
        dec     eax
465
        dec     eax
470
        shr     eax, 2
466
        shr     eax, 2
471
        imul    eax, sizeof.IDE_DATA
467
        imul    eax, sizeof.IDE_DATA
472
        add     eax, IDE_controller_1
468
        add     eax, IDE_controller_1