Rev 4287 | Rev 5565 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4287 | Rev 5201 | ||
---|---|---|---|
Line 152... | Line 152... | ||
152 | pop ebp |
152 | pop ebp |
153 | fat_create_partition.return0: |
153 | fat_create_partition.return0: |
154 | xor eax, eax |
154 | xor eax, eax |
155 | ret |
155 | ret |
156 | fat_create_partition: |
156 | fat_create_partition: |
- | 157 | ; sector size must be 512 |
|
- | 158 | cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
|
- | 159 | jnz .return0 |
|
157 | ; bootsector must have been successfully read |
160 | ; bootsector must have been successfully read |
158 | cmp dword [esp+4], 0 |
161 | cmp dword [esp+4], 0 |
159 | jnz .return0 |
162 | jnz .return0 |
160 | ; bootsector signature must be correct |
163 | ; bootsector signature must be correct |
161 | cmp word [ebx+0x1fe], 0xaa55 |
164 | cmp word [ebx+0x1fe], 0xaa55 |