Subversion Repositories Kolibri OS

Rev

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

Rev 2987 Rev 3232
Line 42... Line 42...
42
;;  20.5.2002  Hd status check - VT                                ;;
42
;;  20.5.2002  Hd status check - VT                                ;;
43
;;  29.6.2002  Improved fat32 verification - VT                    ;;
43
;;  29.6.2002  Improved fat32 verification - VT                    ;;
44
;;                                                                 ;;
44
;;                                                                 ;;
45
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
45
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 46... Line 46...
46
 
46
 
Line 47... Line 47...
47
$Revision: 2987 $
47
$Revision: 3232 $
Line 48... Line 48...
48
 
48
 
Line 2843... Line 2843...
2843
        cmp     ecx, [ebp+FAT.SECTORS_PER_CLUSTER]
2843
        cmp     ecx, [ebp+FAT.SECTORS_PER_CLUSTER]
2844
        jb      @f
2844
        jb      @f
2845
        mov     eax, esi
2845
        mov     eax, esi
2846
        call    get_FAT
2846
        call    get_FAT
2847
        jc      .err1
2847
        jc      .err1
-
 
2848
        cmp     eax, 2
-
 
2849
        jb      .error_fat
-
 
2850
        cmp     eax, [ebp+FAT.fatRESERVED]
-
 
2851
        jae     .empty
2848
        mov     esi, eax
2852
        mov     esi, eax
2849
        xor     ecx, ecx
2853
        xor     ecx, ecx
2850
@@:
2854
@@:
2851
        lea     eax, [esi-2]
2855
        lea     eax, [esi-2]
2852
        imul    eax, [ebp+FAT.SECTORS_PER_CLUSTER]
2856
        imul    eax, [ebp+FAT.SECTORS_PER_CLUSTER]
Line 2863... Line 2867...
2863
        pop     edi
2867
        pop     edi
2864
        call    fat_unlock
2868
        call    fat_unlock
2865
        push    ERROR_DEVICE
2869
        push    ERROR_DEVICE
2866
        pop     eax
2870
        pop     eax
2867
        ret
2871
        ret
-
 
2872
.error_fat:
-
 
2873
        popad
-
 
2874
        pop     edi
-
 
2875
        call    fat_unlock
-
 
2876
        push    ERROR_FAT_TABLE
-
 
2877
        pop     eax
-
 
2878
        ret
2868
.notempty:
2879
.notempty:
2869
        popad
2880
        popad
2870
.access_denied2:
2881
.access_denied2:
2871
        pop     edi
2882
        pop     edi
2872
        call    fat_unlock
2883
        call    fat_unlock