diff --git a/src/boot.s b/src/boot.s index c41e7d5..9342ba9 100644 --- a/src/boot.s +++ b/src/boot.s @@ -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 + 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: - cli - hlt - jmp hang \ No newline at end of file + hlt + jmp hang