mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 14:11:58 +03:00
29 lines
380 B
NASM
29 lines
380 B
NASM
; This is a compliant "kernel" meant for testing purposes.
|
|
|
|
; Header
|
|
section .stivalehdr
|
|
|
|
stivale_header:
|
|
dq stack.top
|
|
db 0
|
|
|
|
section .bss
|
|
|
|
stack:
|
|
resb 4096
|
|
.top:
|
|
|
|
section .text
|
|
|
|
; Entry point
|
|
|
|
global _start
|
|
_start:
|
|
mov rax, 'h e l l '
|
|
mov rbx, 'o w o '
|
|
mov rcx, 'r l d '
|
|
mov [0xb8000], rax
|
|
mov [0xb8008], rbx
|
|
mov [0xb8010], rcx
|
|
jmp $
|