From c06c6ac918d3a2b703ef04a75524aaa6cb4bdd22 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Sun, 25 Oct 2020 14:22:53 +0000 Subject: [PATCH] fat vbr: fix incorrect addition of partition offset --- boot/fat.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/fat.asm b/boot/fat.asm index 1a422b3..e6b2a57 100644 --- a/boot/fat.asm +++ b/boot/fat.asm @@ -112,7 +112,7 @@ offset_fat: ; add reserved sectors adc dx, 0 offset_part: ; add partition offset add ax, [bp+BPBHS] - add dx, [bp+BPBHS] + add dx, [bp+BPBHS+2] ret resetbuf: ; DS = ES