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:
Nero 2020-10-15 20:20:17 +00:00
parent 7b18c6d236
commit ca3eebd692
2 changed files with 2 additions and 6 deletions

View File

@ -75,7 +75,7 @@ read: push ax
; dl bit 6-7: cylinder bits 8-9
mov cx, dx
mov dh, al
mov dl, [bp+bpb.drivenum]
mov dl, [bp-1]
mov ax, 0x0201
mov bx, di
@ -128,7 +128,7 @@ resetbuf: ; DS = ES
ret
main: mov bp, params
mov [bp+bpb.drivenum], dl
mov [bp-1], dl
; load root directory
call resetbuf

View File

@ -11,8 +11,4 @@ struc bpb
.heads: resw 1 ; WORD number of sides
.sectoroffset: resd 1 ; DWORD partition offset
.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