fix bug in stage 2 search
This commit is contained in:
1 parent
cda3a448a9
commit
f9e2135e3b
1 file changed
+1
-1
@@ -172,7 +172,7 @@ bits 16
|
|||||||
cmp word [bp - 0x16], 0 ; Load number of sectors loaded
|
cmp word [bp - 0x16], 0 ; Load number of sectors loaded
|
||||||
je .load_first_lba
|
je .load_first_lba
|
||||||
; If there's still more entries in the current sector, skip loading a new sector
|
; 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
|
cmp [bp - 0x10], ax ; Compare to entries per sector
|
||||||
ja .process_current_entry
|
ja .process_current_entry
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user