Remove fields from BPB that are EBPB actually
This is just a trick so i can use bpb_size in the kernel later, omitting things that are not relevant to interfacing the FS.
This commit is contained in:
parent
7b18c6d236
commit
ca3eebd692
@ -75,7 +75,7 @@ read: push ax
|
|||||||
; dl bit 6-7: cylinder bits 8-9
|
; dl bit 6-7: cylinder bits 8-9
|
||||||
mov cx, dx
|
mov cx, dx
|
||||||
mov dh, al
|
mov dh, al
|
||||||
mov dl, [bp+bpb.drivenum]
|
mov dl, [bp-1]
|
||||||
mov ax, 0x0201
|
mov ax, 0x0201
|
||||||
mov bx, di
|
mov bx, di
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ resetbuf: ; DS = ES
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
main: mov bp, params
|
main: mov bp, params
|
||||||
mov [bp+bpb.drivenum], dl
|
mov [bp-1], dl
|
||||||
|
|
||||||
; load root directory
|
; load root directory
|
||||||
call resetbuf
|
call resetbuf
|
||||||
|
@ -11,8 +11,4 @@ struc bpb
|
|||||||
.heads: resw 1 ; WORD number of sides
|
.heads: resw 1 ; WORD number of sides
|
||||||
.sectoroffset: resd 1 ; DWORD partition offset
|
.sectoroffset: resd 1 ; DWORD partition offset
|
||||||
.longtotal: resd 1 ; DWORD large total sectors
|
.longtotal: resd 1 ; DWORD large total sectors
|
||||||
.drivenum: resb 1 ; BYTE drive number
|
|
||||||
.flags: resb 1
|
|
||||||
.signature: resb 1 ; BYTE 28h
|
|
||||||
.serial: resb 4 ; DWORD serial
|
|
||||||
endstruc
|
endstruc
|
||||||
|
Loading…
Reference in New Issue
Block a user