From 60ad0d71e066ac412108732b94315d882aa07d91 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 3 Oct 2024 21:00:02 -0400 Subject: [PATCH] add bpb and ebpb reserve area back to vbr.nasm --- src/vbr/vbr.nasm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/vbr/vbr.nasm b/src/vbr/vbr.nasm index b036ad6..661bbea 100755 --- a/src/vbr/vbr.nasm +++ b/src/vbr/vbr.nasm @@ -24,8 +24,15 @@ [CPU KATMAI] jmp short init nop +phy_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 -%include "fat32/bpb_reserve_area.inc" +phy_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 %include "entry.inc" init: @@ -103,7 +110,7 @@ main: mov bp, sp mov ax, fat32_bpb_SIZE ; size in byte push ax - mov ax, bpb_start ; start of bpb + mov ax, phy_bpb_start ; start of bpb push ax mov ax, fat32_bpb ; defined in memory.inc, destination push ax @@ -114,7 +121,7 @@ main: mov bp, sp mov ax, fat32_ebpb_SIZE ; 72 bytes of data push ax - mov ax, ebpb_start ; start of ebpb + mov ax, phy_ebpb_start ; start of ebpb push ax mov ax, fat32_ebpb ; defined in memory.inc, destination push ax