stage1/hdd: Zero-extend bytes_per_sect to full EBP to fix 32-bit division

This commit is contained in:
Mintsuki
2026-02-08 08:59:55 +01:00
parent 963607c6f0
commit 7b6ad6294f

View File

@@ -35,7 +35,7 @@ read_sectors:
mov word [si], 30 ; buf_size
int 0x13
jc .done
mov bp, word [si+24] ; bytes_per_sect
movzx ebp, word [si+24] ; bytes_per_sect
; ECX byte count to CX sector count
mov ax, cx