From f9e2135e3bd325baeae8b5804a1ee8facf3afa2a Mon Sep 17 00:00:00 2001 From: pantonshire Date: Sun, 7 Jul 2024 16:04:05 +0100 Subject: [PATCH] fix bug in stage 2 search --- boot0.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot0.s b/boot0.s index 8ce7140..ebb2835 100644 --- a/boot0.s +++ b/boot0.s @@ -172,7 +172,7 @@ bits 16 cmp word [bp - 0x16], 0 ; Load number of sectors loaded je .load_first_lba ; If there's still more entries in the current sector, skip loading a new sector - mov ax, [bp - 0x18] ; Load current entry index within the current sector + mov ax, [bp - 0x14] ; Load current entry index within the current sector cmp [bp - 0x10], ax ; Compare to entries per sector ja .process_current_entry