Move include in bootloader

This commit is contained in:
manzerbredes 2015-07-18 10:26:33 +04:00
parent 9d2b511fd5
commit 2dd46db796

View file

@ -4,6 +4,10 @@
;Save the first adress with a label to complete the MBR at the end. ;Save the first adress with a label to complete the MBR at the end.
start: start:
;Include bios routines and jump to skip including code
jmp skipInc
%include "clearScreenIntBios.asm"
skipInc:
;Init CPU registers ;Init CPU registers
mov ax, 0x0C70 ;Put bootloader adress in ax register mov ax, 0x0C70 ;Put bootloader adress in ax register
@ -13,13 +17,13 @@ mov ss, ax
mov ax, 0xf000 mov ax, 0xf000
mov sp, ax mov sp, ax
;Clear the screen
call clearScreenIntBios call clearScreenIntBios
;Pause here ! ;Pause here !
infiniteLoop: infiniteLoop:
jmp infiniteLoop jmp infiniteLoop
%include "clearScreenIntBios.asm"
;Complete the MBR with nothing ;Complete the MBR with nothing
times 510 - ($ - start) db 0x0 times 510 - ($ - start) db 0x0