Subversion Repositories Kolibri OS

Rev

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

Rev 394 Rev 400
Line 1887... Line 1887...
1887
; allocate new cluster
1887
; allocate new cluster
1888
        xor     eax, eax
1888
        xor     eax, eax
1889
        repnz   scasw
1889
        repnz   scasw
1890
        mov     al, ERROR_DISK_FULL
1890
        mov     al, ERROR_DISK_FULL
1891
        jnz     .ret
1891
        jnz     .ret
-
 
1892
 
1892
        dec     edi
1893
        dec     edi
1893
        dec     edi
1894
        dec     edi
Line 1894... Line 1895...
1894
 
1895
 
1895
  ;      lea     eax, [edi-FLOPPY_FAT]
1896
  ;      lea     eax, [edi-FLOPPY_FAT]
1896
        mov eax, edi
1897
        mov eax, edi
Line 1897... Line 1898...
1897
        sub edi, FLOPPY_FAT
1898
        sub eax, FLOPPY_FAT
1898
 
1899
 
1899
        shr     eax, 1                  ; eax = cluster
1900
        shr     eax, 1                  ; eax = cluster
1900
        mov     word [edi], 0xFFF       ; mark as last cluster
1901
        mov     word [edi], 0xFFF       ; mark as last cluster