From 2bbfa0931b6974facb88780a9adf41d6ebb69717 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Wed, 2 Oct 2024 10:25:59 -0400 Subject: [PATCH] moved reservation for bpb to a include --- include/fat32/bpb_reserve_area.inc | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/fat32/bpb_reserve_area.inc diff --git a/include/fat32/bpb_reserve_area.inc b/include/fat32/bpb_reserve_area.inc new file mode 100644 index 0000000..27e8759 --- /dev/null +++ b/include/fat32/bpb_reserve_area.inc @@ -0,0 +1,29 @@ +; Copyright (c) 2024 Elaina Claus +; +; Permission is hereby granted, free of charge, to any person obtaining a copy +; of this software and associated documentation files (the "Software"), to deal +; in the Software without restriction, including without limitation the rights +; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +; copies of the Software, and to permit persons to whom the Software is +; furnished to do so, subject to the following conditions: +; +; The above copyright notice and this permission notice shall be included in all +; copies or substantial portions of the Software. +; +; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +; SOFTWARE. + +bpb_start: +; fill BPB area with 0x00 since we skip writing this part to disk +; but we need it for the 'jmp short entry; nop' above +times 33 db 0x00 + +ebpb_start: +; fill BPB area with 0x00 since we skip writing this part to disk +; but we need it for the 'jmp short entry; nop' above +times 54 db 0x00 \ No newline at end of file