fix passing stage2 wrong data for boot drive

This commit is contained in:
2024-10-11 13:09:17 -04:00
parent 4af0637c7f
commit 802d47fbf7
2 changed files with 3 additions and 5 deletions

View File

@@ -361,9 +361,7 @@ NewLine_cstr:
BootTarget_str:
db "BOOT BIN"
boot_drive_ptr:
db 0x00
stage2_resb_1:
db 0x00
dw 0x0000
partition_offset_ptr:
dw 0x0000

View File

@@ -136,8 +136,8 @@ main:
ERROR VBR_ERROR_NO_SIGNATURE ; no signature present in stage2
.sig_ok:
mov si, [bp - 4]
mov dx, [bp - 2]
mov si, word [bp - 4]
mov dl, byte [bp - 2]
jmp 0:0x7E00
; ###############