From 2aa306c9a3c0c0b015c8b82638a31582e2bad364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Fri, 23 Feb 2018 17:39:14 +0100 Subject: [PATCH] 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. --- boot_sect.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot_sect.asm b/boot_sect.asm index 3ec1862..03a94c3 100644 --- a/boot_sect.asm +++ b/boot_sect.asm @@ -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