Subversion Repositories Kolibri OS

Rev

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

Rev 2455 Rev 3534
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2011. 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: 2455 $
8
$Revision: 3534 $
9
 
9
 
10
 
10
 
Line 708... Line 708...
708
;* Âõîäíûå ïàðàìåòðû ïåðåäàþòñÿ ÷åðåç ãëîáàëüíûå *
708
;* Âõîäíûå ïàðàìåòðû ïåðåäàþòñÿ ÷åðåç ãëîáàëüíûå *
709
;* ïåðåìåííûå:                                   *
709
;* ïåðåìåííûå:                                   *
710
;* ChannelNumber - íîìåð êàíàëà;                 *
710
;* ChannelNumber - íîìåð êàíàëà;                 *
711
;* DiskNumber - íîìåð äèñêà íà êàíàëå.           *
711
;* DiskNumber - íîìåð äèñêà íà êàíàëå.           *
712
;*************************************************
712
;*************************************************
-
 
713
proc check_ATAPI_device_event_has_work?
-
 
714
        mov     eax, [timer_ticks]
-
 
715
        sub     eax, [timer_ATAPI_check]
-
 
716
        cmp     eax, 100
-
 
717
        jb      .no
-
 
718
.yes:
-
 
719
        xor     eax, eax
-
 
720
        inc     eax
-
 
721
        ret
-
 
722
.no:
-
 
723
        xor     eax, eax
-
 
724
        ret
-
 
725
endp
-
 
726
 
713
align 4
727
align 4
714
check_ATAPI_device_event:
728
check_ATAPI_device_event:
715
        pusha
729
        pusha
716
        mov     eax, [timer_ticks]
730
        mov     eax, [timer_ticks]
717
        sub     eax, [timer_ATAPI_check]
731
        sub     eax, [timer_ATAPI_check]