From 22a23d6784e8104366f81a3b4902c4a1c3c3726a Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 18 Jul 2015 10:30:53 +0400 Subject: [PATCH] Add some comments --- bootloader/bootloader.asm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index 5abfc8e..ee11e2c 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -12,10 +12,12 @@ skipInc: ;Init CPU registers mov ax, 0x0C70 ;Put bootloader adress in ax register mov ds, ax ;Init data segment + +;Init stack from 0x80000 to 0x8f000 mov ax, 0x8000 -mov ss, ax -mov ax, 0xf000 -mov sp, ax +mov ss, ax ;Set stack segment +mov ax, 0x0f00 +mov sp, ax ;Set stack offset ;Clear the screen call clearScreenIntBios