rdos/kernel/main.asm

23 lines
286 B
NASM
Raw Normal View History

main:
mov ax, cs
mov ds, ax
2019-03-23 22:26:46 +01:00
call debug_init
call heap_init
2019-03-23 22:26:46 +01:00
mov ax, 18
call malloc
.endloop:
hlt
jmp .endloop
%include "kernel/heap.asm"
%include "kernel/intr.asm"
%include "kernel/debug.asm"
%include "kernel/kprintf.asm"
align 16
heap:
dw 0