might have fixed some of the boot_drive issues with ext_read

This commit is contained in:
2024-12-19 13:13:46 -05:00
parent e33f010f73
commit 63a1a1beea
4 changed files with 57 additions and 55 deletions

View File

@@ -152,10 +152,10 @@ main:
call read_disk_raw
add sp, 0xC
.enter_stage2:
mov dl, byte [bp - 2] ; boot_drive
mov si, word [bp - 4] ; part_offset
mov bx, partition_table
mov dx, fat32_bpb
mov dl, byte [bp - 2] ; byte boot_drive
mov ax, word [bp - 4] ; word part_offset
mov si, partition_table ; ptr partition_table
mov di, fat32_bpb ; ptr fat32_bpb
jmp word 0x0000:STAGE2_ENTRY
; ###############