Subversion Repositories Kolibri OS

Rev

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

Rev 521 Rev 533
Line 1... Line 1...
1
$Revision: 521 $
1
$Revision: 533 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                              ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
Line 13... Line 13...
13
cd_counter_block               dd  0
13
cd_counter_block               dd  0
14
IDE_Channel_1                  db  0
14
IDE_Channel_1                  db  0
15
IDE_Channel_2                  db  0
15
IDE_Channel_2                  db  0
16
endg
16
endg
Line 17... Line -...
17
 
-
 
18
CDDataBuf equ 0x7000
-
 
19
 
17
 
Line 20... Line 18...
20
reserve_cd:
18
reserve_cd:
21
 
19
 
22
    cli
20
    cli
Line 531... Line 529...
531
        inc  dword [CDSectorAddress]
529
        inc  dword [CDSectorAddress]
532
        mov  [CDDataBuf_pointer],CDDataBuf
530
        mov  [CDDataBuf_pointer],CDDataBuf
533
        call ReadCDWRetr         ; ÷èòàåì ñåêòîð äèðåêòîðèè
531
        call ReadCDWRetr         ; ÷èòàåì ñåêòîð äèðåêòîðèè
534
        cmp   [DevErrorCode],0
532
        cmp   [DevErrorCode],0
535
        jne   .access_denied
533
        jne   .access_denied
-
 
534
        push    ebp
536
        call cd_find_name_in_buffer
535
        call    cd_find_name_in_buffer
-
 
536
        pop     ebp
537
        jnc    .found
537
        jnc     .found
538
        sub  eax,2048
538
        sub  eax,2048
539
; äèðåêòîðèÿ çàêîí÷èëàñü?
539
; äèðåêòîðèÿ çàêîí÷èëàñü?
540
        cmp  eax,0
540
        cmp  eax,0
541
        ja   .read_to_buffer
541
        ja   .read_to_buffer