Subversion Repositories Kolibri OS

Rev

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

Rev 1376 Rev 2382
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. 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:1322 $
8
$Revision: 2382 $
9
 
9
 
10
 
10
 
Line 52... Line 52...
52
    cli
52
        cli
53
    cmp   [IDE_Channel_2],0
53
        cmp     [IDE_Channel_2], 0
54
    je	  .reserve_ok_2
54
        je      .reserve_ok_2
55
    sti
55
        sti
56
    call  change_task
56
        call    change_task
57
    jmp   .IDE_Channel_1
57
        jmp     .IDE_Channel_2
58
.reserve_ok_1:
58
.reserve_ok_1:
59
    mov [IDE_Channel_1],1
59
        mov     [IDE_Channel_1], 1
-
 
60
        sti
60
    ret
61
        ret
61
.reserve_ok_2:
62
.reserve_ok_2:
62
    mov [IDE_Channel_2],1
63
        mov     [IDE_Channel_2], 1
-
 
64
        sti
63
    ret
65
        ret
Line 64... Line 66...
64
 
66
 
65
free_cd_channel:
67
free_cd_channel:
66
    cmp   [ChannelNumber],1
68
        cmp     [ChannelNumber], 1
67
    jne   .IDE_Channel_2
69
        jne     .IDE_Channel_2
68
.IDE_Channel_1:
70
.IDE_Channel_1:
-
 
71
        mov     [IDE_Channel_1], 0
69
    mov [IDE_Channel_1],0
72
        sti
70
    ret
73
        ret
71
.IDE_Channel_2:
74
.IDE_Channel_2:
-
 
75
        mov     [IDE_Channel_2], 0
72
    mov [IDE_Channel_2],0
76
        sti
Line 73... Line 77...
73
    ret
77
        ret
74
 
78
 
75
uglobal
79
uglobal