fix passing stage2 wrong data for boot drive

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

View File

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

View File

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