Subversion Repositories Kolibri OS

Rev

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

Rev 593 Rev 709
Line 15... Line 15...
15
;; 08.11.2004 expand_pathz and rename (only for hd) - ATV       ;;
15
;; 08.11.2004 expand_pathz and rename (only for hd) - ATV       ;;
16
;; 20.10.2004 Makedir/Removedir (only for hd) - ATV             ;;
16
;; 20.10.2004 Makedir/Removedir (only for hd) - ATV             ;;
17
;;                                                              ;;
17
;;                                                              ;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 19... Line 19...
19
 
19
 
Line 20... Line 20...
20
$Revision: 593 $
20
$Revision: 709 $
21
 
21
 
22
 
22
 
Line 363... Line 363...
363
choice_necessity_partition_1:
363
choice_necessity_partition_1:
364
    mov   ecx,[hdpos]
364
    mov   ecx,[hdpos]
365
    xor   eax,eax
365
    xor   eax,eax
366
    mov   [hd_entries], eax    ; entries in hd cache
366
    mov   [hd_entries], eax    ; entries in hd cache
367
    mov   edx,DRIVE_DATA+2
367
    mov   edx,DRIVE_DATA+2
-
 
368
    cmp   ecx,0x80
-
 
369
    jb    search_partition_array
-
 
370
    mov   ecx,4
368
 search_partition_array:
371
 search_partition_array:
369
    mov   bl,[edx]
372
    mov   bl,[edx]
370
    movzx ebx,bl
373
    movzx ebx,bl
371
    add   eax,ebx
374
    add   eax,ebx
372
    inc   edx
375
    inc   edx
373
    loop  search_partition_array
376
    loop  search_partition_array
-
 
377
    mov   ecx,[hdpos]
-
 
378
    mov   edx,BiosDiskPartitions
-
 
379
    sub   ecx,0x80
-
 
380
    jb    .s
-
 
381
    je    .f
-
 
382
 @@:
-
 
383
    mov   ebx,[edx]
-
 
384
    add   edx,4
-
 
385
    add   eax,ebx
-
 
386
    loop  @b
-
 
387
    jmp   .f
-
 
388
 .s:
374
    sub   eax,ebx
389
    sub   eax,ebx
-
 
390
 .f:
375
    add   eax,[fat32part]
391
    add   eax,[fat32part]
376
    dec   eax
392
    dec   eax
377
    xor   edx,edx
393
    xor   edx,edx
378
    imul  eax,100
394
    imul  eax,100
379
    add   eax,DRIVE_DATA+0xa
395
    add   eax,DRIVE_DATA+0xa