luxos/SysCore/loader.asm

26 lines
424 B
NASM
Raw Normal View History

2021-09-14 15:34:14 +00:00
bits 32
global start
start: jmp stub
stub: cmp eax, 0x2badb002
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