From 29bf691713b89925b90a2fdedd1b8653d294794c Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Sun, 8 Dec 2013 13:45:41 +0100 Subject: [PATCH] Cleanup --- bootloader/stage2.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]