2019-03-23 21:23:17 +01:00
|
|
|
main:
|
|
|
|
mov ax, cs
|
|
|
|
mov ds, ax
|
|
|
|
mov es, ax
|
|
|
|
|
|
|
|
mov bx, 0x002E
|
|
|
|
mov dx, debug_reg_ir
|
|
|
|
|
|
|
|
call ivt_set
|
|
|
|
|
|
|
|
call heap_init
|
|
|
|
mov ax, 18
|
|
|
|
call malloc
|
|
|
|
|
2019-03-23 21:54:08 +01:00
|
|
|
int 0x2E
|
|
|
|
|
|
|
|
.endloop:
|
|
|
|
hlt
|
|
|
|
jmp .endloop
|
2019-03-23 21:23:17 +01:00
|
|
|
|
|
|
|
%include "kernel/heap.asm"
|
|
|
|
%include "kernel/intr.asm"
|
|
|
|
%include "kernel/debug.asm"
|
|
|
|
%include "kernel/kprintf.asm"
|
|
|
|
|
|
|
|
align 16
|
|
|
|
heap:
|
|
|
|
dw 0
|