summaryrefslogtreecommitdiff
path: root/bootloader/bootloader.asm
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/bootloader.asm')
-rw-r--r--bootloader/bootloader.asm9
1 files changed, 9 insertions, 0 deletions
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