diff --git a/bootloader/stage2.asm b/bootloader/stage2.asm index 4554bb7f..26890941 100644 --- a/bootloader/stage2.asm +++ b/bootloader/stage2.asm @@ -39,6 +39,7 @@ second_step: xor di, di .next: + ; Make sure the second part of the address is 0x0 xor bx, bx ; Read one sector @@ -90,7 +91,7 @@ second_step: cmp dh, 2 jne .next_sector - mov dh, 0 + xor dh, dh mov [head], dh mov ch, [cylinder]