rdos/kernel/main.asm

32 lines
387 B
NASM
Raw Normal View History

; assumptions about the starting envionment
cpu 8086
org 0x0000
_startup:
mov ax, cs
mov ss, ax
mov sp, 0x0000
main:
mov ax, cs
mov ds, ax
call heap_init
call ivt_backup
call debug_init
2019-03-23 22:26:46 +01:00
int 0x2E
.halt:
hlt
jmp .halt
%include "heap.asm"
%include "intr.asm"
%include "debug.asm"
%include "kprintf.asm"
_reloc_end:
align 16
heap: