luxos/SysCore/loader.asm
2021-09-14 18:46:50 +03:00

25 lines
429 B
NASM

bits 32
global start
start:
jmp stub
stub: cmp eax, 0xC0DEcC7A
jne .bad
mov ax, 10h
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
extern _k_main
call _k_main
.bad:
cli
hlt
SECTION .bss
resb 8192 ; This reserves 8KBytes of memory here