From 9d2b511fd521fc61ed2eb6f0fc5ed23252ac3190 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sat, 18 Jul 2015 10:23:36 +0400 Subject: Add some bios routines --- bootloader/bootloader.asm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bootloader/bootloader.asm') diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm index 8baeca7..db80946 100644 --- a/bootloader/bootloader.asm +++ b/bootloader/bootloader.asm @@ -4,14 +4,23 @@ ;Save the first adress with a label to complete the MBR at the end. start: + ;Init CPU registers mov ax, 0x0C70 ;Put bootloader adress in ax register mov ds, ax ;Init data segment +mov ax, 0x8000 +mov ss, ax +mov ax, 0xf000 +mov sp, ax + +call clearScreenIntBios ;Pause here ! infiniteLoop: jmp infiniteLoop +%include "clearScreenIntBios.asm" + ;Complete the MBR with nothing times 510 - ($ - start) db 0x0 -- cgit v1.2.3