This commit is contained in:
nub31
2025-08-30 21:26:01 +02:00
parent 75e30fa3dc
commit dcc8226908

View File

@@ -26,12 +26,25 @@ _start:
mov stack_top, esp
cmp eax, BOOTLOADER_MAGIC
jne hang
jne error
push ebx
call kernel_main
add esp, 4
hang:
jmp error
error:
cli
mov byte ptr [0xb8000], 'B'
mov byte ptr [0xb8002], 'O'
mov byte ptr [0xb8004], 'O'
mov byte ptr [0xb8006], 'T'
mov byte ptr [0xb8008], ' '
mov byte ptr [0xb800a], 'E'
mov byte ptr [0xb800c], 'R'
mov byte ptr [0xb800e], 'R'
mov byte ptr [0xb8010], 'O'
mov byte ptr [0xb8012], 'R'
hang:
hlt
jmp hang