aboutsummaryrefslogtreecommitdiffstats
path: root/src/kernel/kernel.asm
blob: 022a93d418711cb79c7af0c5a063d95442c7c757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; kernel.asm
[bits 32]
[org 0x10000]

%include "common.asm"
%include "common.protmode.print.asm"
%include "common.protmode.clear.asm"

_kernel_entry:  
        cli                         ; No interrupts yet
        mov ebp, RET_STACK
        mov esp, DATA_STACK

        call _clear_screen
        call _show_welcome_msg
        
.halt: hlt
        jmp .halt

welcome_msg:
        db "Welcome...", 13, 10, 0