remove shortjmp and ident from bpb

This commit is contained in:
2025-09-18 11:20:05 -04:00
parent 6c402b5c4f
commit d8a89cfd2b
3 changed files with 24 additions and 20 deletions

View File

@@ -58,16 +58,14 @@
; resulting in a value which does not fit in the Number of Sectors entry at 0x13.
struc FAT32_bpb_t
.reserved_jmpboot resb 3
.u16_BytesPerSector resw 1
.ident resb 8
.u8_SectorsPerCluster resb 1
.u16_ReservedSectors resw 1
.u8_FatCount resb 1
.u16_unused1_ZERO resb 2 ; Root entry count field, 0 on fat32
.u16_unused2_ZERO resb 2 ; total sectors size 16, 0 on fat32
.u16_RootEntryCount16 resw 1 ; Root dir entry count field, 0 on fat32
.u16_TotalSectors16 resw 1 ; total number of sectors size, 0 on fat32
.u8_MediaDesc resb 1
.u16_unused3_ZERO resb 2 ; FAT size 16, 0 on fat32
.u16_FatSize16 resw 1 ; FAT size 16, 0 on fat32
.u16_SectorsPerTrack resw 1
.u16_HeadCount resw 1
.u32_HiddenSectors resd 1
@@ -91,17 +89,17 @@ endstruc
; 8 System identifier string. Always "FAT32 ". The spec says never to trust the contents of this string for any use.
struc FAT32_ebpb_t
.u32_FATSz resb 4 ; size of *each* fat in sectors, total = FATSz * (# of FATs)
.u16_ExtFlags resb 2
.u16_FSVersion resb 2
.u32_RootDirCluster resb 4
.u16_FSInfoSector resb 2
.u16_BkBootSector resb 2
.reserved1 resb 12
.u32_FATSz resd 1 ; size of *each* fat in sectors, total = FATSz * (# of FATs)
.u16_ExtFlags resw 1
.u16_FSVersion resw 1
.u32_RootDirCluster resd 1
.u16_FSInfoSector resw 1
.u16_BkBootSector resw 1
.reserved0 resb 12
.u8_DriveNumber resb 1
.u8_NtFlags resb 1
.u8_Signature resb 1
.u32_VolumeId resb 4
.u32_VolumeId resd 1
.volume_label resb 11
.system_ident resb 8 ; Should always be 'FAT32 '
endstruc