It works now.
It most likely failed because the drive it was booting (i.e. the image that was made) has less than 15 sectors in it to begin with. The kernel only takes up less than 1 sector and so loading that qill suffice.
This commit is contained in:
parent
acc3f782b4
commit
2aa306c9a3
@ -25,7 +25,7 @@ load_kernel:
|
||||
call print_string
|
||||
|
||||
mov bx, KERNEL_OFFSET ; address to load the kernel to
|
||||
mov dh, 15 ; number of sectors to load
|
||||
mov dh, 1 ; number of sectors to load
|
||||
mov dl, [BOOT_DRIVE] ; drive to load from
|
||||
call disk_load
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user