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:
Nicolás Ortega Froysa 2018-02-23 17:39:14 +01:00
parent acc3f782b4
commit 2aa306c9a3
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -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