From a3dfd2c36cf321a3811c1119bd1bdec7a8fdfa4d Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Tue, 14 Dec 2021 15:24:36 +0000 Subject: [PATCH] add BPB definitions as stand-alone include --- src/bpb.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/bpb.inc diff --git a/src/bpb.inc b/src/bpb.inc new file mode 100644 index 0000000..285c665 --- /dev/null +++ b/src/bpb.inc @@ -0,0 +1,19 @@ +; BIOS parameter block +; We use DOS 3.31 version as common denominator + +; Offset into boot sector +BPBOFF equ 0xB + +BPBSS equ 0 ; word bytes per sector +BPBSC equ 2 ; byte sectors per cluster +BPBRSC equ 3 ; word reserved sector count +BPBFN equ 5 ; byte number of fat tables +BPBRDE equ 6 ; word root disk entries +BPBTS equ 8 ; word total sectors +BPBMD equ 10 ; byte media descriptor byte +BPBFS equ 11 ; word sectors per fat +BPBSPT equ 13 ; word sectors per track +BPBNOS equ 15 ; word number of sides/heads +BPBHS equ 17 ; dword partition offset +BPBLTS equ 21 ; dword large total sectors +BPBSIZ equ 25 ; size in bytes