Make setup generic for both NBP and DOS startup

This commit is contained in:
Nero 2019-03-24 17:59:45 +00:00
parent bcff1efe59
commit 8d12a42442
2 changed files with 44 additions and 21 deletions

View file

@ -2,15 +2,13 @@ main:
mov ax, cs
mov ds, ax
call debug_init
call heap_init
call ivt_backup
call debug_init
mov ax, 18
call malloc
int 0x2E
.endloop:
hlt
jmp .endloop
retf
%include "kernel/heap.asm"
%include "kernel/intr.asm"
@ -19,4 +17,3 @@ main:
align 16
heap:
dw 0