summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-18 10:26:33 +0400
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-07-18 10:26:33 +0400
commit2dd46db7968caf87f6a54729c213811f302cb11a (patch)
tree6213b5b533a06118b70571e4a7e0ac7073a82ac5 /bootloader
parent9d2b511fd521fc61ed2eb6f0fc5ed23252ac3190 (diff)
Move include in bootloader
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/bootloader.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootloader/bootloader.asm b/bootloader/bootloader.asm
index db80946..5abfc8e 100644
--- a/bootloader/bootloader.asm
+++ b/bootloader/bootloader.asm
@@ -4,6 +4,10 @@
;Save the first adress with a label to complete the MBR at the end.
start:
+;Include bios routines and jump to skip including code
+jmp skipInc
+%include "clearScreenIntBios.asm"
+skipInc:
;Init CPU registers
mov ax, 0x0C70 ;Put bootloader adress in ax register
@@ -13,13 +17,13 @@ mov ss, ax
mov ax, 0xf000
mov sp, ax
+;Clear the screen
call clearScreenIntBios
;Pause here !
infiniteLoop:
jmp infiniteLoop
-%include "clearScreenIntBios.asm"
;Complete the MBR with nothing
times 510 - ($ - start) db 0x0