Use uppercase non-struct constants for BPB
This commit is contained in:
parent
dc6035fe9d
commit
50aa6e4eec
4 changed files with 47 additions and 95 deletions
40
inc/bpb.asm
40
inc/bpb.asm
|
@ -1,14 +1,26 @@
|
|||
struc bpb
|
||||
.sectorsize: resw 1 ; WORD sector size
|
||||
.clustersects: resb 1 ; BYTE sector / cluster
|
||||
.reservedsects: resw 1 ; WORD reserved sector count
|
||||
.fatnumber: resb 1 ; BYTE fat number
|
||||
.direntries: resw 1 ; WORD root dir entries
|
||||
.total: resw 1 ; WORD total sectors
|
||||
.mediadesc: resb 1 ; BYTE media descriptor
|
||||
.fatsectors: resw 1 ; WORD sectors / fat
|
||||
.tracksectors: resw 1 ; WORD sectors per track
|
||||
.heads: resw 1 ; WORD number of sides
|
||||
.sectoroffset: resd 1 ; DWORD partition offset
|
||||
.longtotal: resd 1 ; DWORD large total sectors
|
||||
endstruc
|
||||
BPBOFF equ 0xB
|
||||
|
||||
; DOS 2.0 BPB
|
||||
BPBSS equ 0 ; word
|
||||
BPBSC equ 2 ; byte
|
||||
BPBRSC equ 3 ; word
|
||||
BPBFN equ 5 ; byte
|
||||
BPBRDE equ 6 ; word
|
||||
BPBTS equ 8 ; word
|
||||
BPBMD equ 10 ; byte
|
||||
BPBFS equ 11 ; word
|
||||
BPBSIZ2 equ 13 ; size constant
|
||||
|
||||
; DOS 3.31 BPB
|
||||
BPBSPT equ 0x0D ; word
|
||||
BPBNOS equ 0x0F ; word
|
||||
BPBHS equ 0x11 ; dword
|
||||
BPBLTS equ 0x15 ; dword
|
||||
BPBSIZ3 equ 25 ; size constant
|
||||
|
||||
; DOS 3.4 EBPB
|
||||
BPBDN equ 0x19 ; byte
|
||||
BPBFALG equ 0x1A ; byte
|
||||
BPBSIG equ 0x1B ; byte
|
||||
BPBSER equ 0x1C ; dword serial number
|
||||
BPBSIZ4 equ 32 ; size constant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue