Subversion Repositories Kolibri OS

Rev

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

Rev 2643 Rev 3442
Line 6... Line 6...
6
;; FAT12.INC                                                    ;;
6
;; FAT12.INC                                                    ;;
7
;; (C) 2005 Mario79, License: GPL                               ;;
7
;; (C) 2005 Mario79, License: GPL                               ;;
8
;;                                                              ;;
8
;;                                                              ;;
9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
9
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 10... Line 10...
10
 
10
 
Line 11... Line 11...
11
$Revision: 2643 $
11
$Revision: 3442 $
12
 
12
 
13
 
13
 
Line 2255... Line 2255...
2255
        pusha
2255
        pusha
2256
        call    save_chs_sector
2256
        call    save_chs_sector
2257
        popa
2257
        popa
2258
; delete FAT chain
2258
; delete FAT chain
2259
        pop     eax
2259
        pop     eax
2260
        test    eax, eax
-
 
2261
        jz      .done
-
 
2262
@@:
2260
@@:
-
 
2261
        cmp     eax, 2
-
 
2262
        jb      .done
-
 
2263
        cmp     eax, 0xFF8
-
 
2264
        jae     .done
2263
        lea     eax, [FLOPPY_FAT + eax*2]
2265
        lea     eax, [FLOPPY_FAT + eax*2]
2264
        push    dword [eax]
2266
        push    dword [eax]
2265
        and     word [eax], 0
2267
        and     word [eax], 0
2266
        pop     eax
2268
        pop     eax
2267
        and     eax, 0xFFF
2269
        and     eax, 0xFFF
2268
        jnz     @b
2270
        jmp     @b
2269
.done:
2271
.done:
2270
        call    save_flp_fat
2272
        call    save_flp_fat
2271
        pop     edi
2273
        pop     edi
2272
        xor     eax, eax
2274
        xor     eax, eax
2273
        ret
2275
        ret