Badloader/kernel_entry.asm

26 lines
No EOL
350 B
NASM

; wait, WHAT? we have a bad DOS now????? This is absurd! You can't just add a SECOND project into the FIRST project.
[BITS 16]
[GLOBAL start]
[EXTERN kernel_main]
start:
cli
xor ax, ax
mov ds, ax
mov es, ax
mov ss, ax
mov sp, 0x7C00
sti
call kernel_main
cli
hang:
hlt
jmp hang
times 512-($-$$) db 0