rdos/boot/kernel.asm

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