Subversion Repositories Kolibri OS

Rev

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

Rev 3232 Rev 3500
Line 72... Line 72...
72
        cmp     edx, eax
72
        cmp     edx, eax
73
        jb      @f
73
        jb      @f
74
        mov     edx, eax
74
        mov     edx, eax
75
@@:
75
@@:
76
; 2. Zero all system areas on the disk.
76
; 2. Zero all system areas on the disk.
77
        lea     ecx, [256*(1+FAT16_ROOTDIR_SECTORS)/2+edx+255]
77
        lea     ecx, [256*(1+FAT16_ROOTDIR_SECTORS)+edx+255]
78
        and     ecx, not 255
78
        and     ecx, not 255
79
        shr     ecx, 1
79
        shr     ecx, 1
80
        xor     eax, eax
80
        xor     eax, eax
81
        push    edi
81
        push    edi
82
        rep stosd
82
        rep stosd
Line 297... Line 297...
297
fat32bootsector_stub:
297
fat32bootsector_stub:
298
        db 0EBh, 58h, 90h       ; BS_jmpBoot
298
        db 0EBh, 58h, 90h       ; BS_jmpBoot
299
        db 'KOLIBRI '           ; BS_OEMName
299
        db 'KOLIBRI '           ; BS_OEMName
300
        dw 512                  ; BPB_BytsPerSec
300
        dw 512                  ; BPB_BytsPerSec
301
        db 1                    ; BPB_SecsPerClus
301
        db 1                    ; BPB_SecsPerClus
302
        dw 1                    ; BPB_RsvdSecCnt
302
        dw 2                    ; BPB_RsvdSecCnt
303
        db 1                    ; BPB_NumFATs
303
        db 1                    ; BPB_NumFATs
304
        dw 0                    ; BPB_RootEntCnt
304
        dw 0                    ; BPB_RootEntCnt
305
        dw 0                    ; BPB_TotSec16
305
        dw 0                    ; BPB_TotSec16
306
        db 0F8h                 ; BPB_Media
306
        db 0F8h                 ; BPB_Media
307
        dw 0                    ; BPB_FATSz16
307
        dw 0                    ; BPB_FATSz16