rdos/kernel/main.asm
2019-04-14 19:35:55 +00:00

37 lines
504 B
NASM

; assumptions about the starting envionment
cpu 8086
org 0x0000
_startup:
mov ax, cs
mov ss, ax
mov sp, 0x0000
; <0x0010 is BIOS segment when relocated to HMA
; so we need a nop sled
times (0x10 - ($-$$)) nop
main:
call intr_init
int 3
mov ah, 0x01
int 0x21
mov dl, al
mov ah, 0x02
int 0x21
sti
.halt:
hlt
jmp .halt
%include "intr.asm"
%include "debug.asm"
%include "kprintf.asm"
%include "dosapi.asm"
_reloc_end:
align 16
heap: