rdos/boot/kernel.asm
Ain 31eac279c2 Revert to more sensible kernel.bs boot scheme
I think i should consider it a necessity that the kernel is accessible
as a regular file. This makes installing rdos on another blockdev
much easier.
2020-09-20 19:58:19 +02:00

29 lines
325 B
NASM

cpu 8086
org 0x7C00
%include "inc/bpb.asm"
%include "inc/mbr.asm"
; kernel stack size in words
%define stacksize 512
init: cli
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, ( stack+stacksize )
int 3
hlt: hlt
jmp hlt
db "rdos kernel"
end: align 512
section .bss
stack: resb stacksize