summaryrefslogtreecommitdiff
path: root/bootloader/bootloader.asm
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-18 10:23:36 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-18 10:23:36 +0400
commit9d2b511fd521fc61ed2eb6f0fc5ed23252ac3190 (patch)
tree2b74dd0c8bd575f009c1e255bc133ca84e0be674 /bootloader/bootloader.asm
parent707d7e38b6c3da23e99e9cbf9ad3c0cd27459c90 (diff)
Add some bios routines
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