mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 14:11:58 +03:00
32 lines
491 B
NASM
32 lines
491 B
NASM
; This is a compliant "kernel" meant for testing purposes.
|
|
|
|
; Header
|
|
section .stivalehdr
|
|
|
|
stivale_header:
|
|
dq stack.top ; rsp
|
|
db 1 ; video mode
|
|
dw 640 ; fb_width
|
|
dw 480 ; fb_height
|
|
|
|
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 rdx, [rdi+20]
|
|
mov [rdx], rax
|
|
mov [rdx+8], rbx
|
|
mov [rdx+16], rcx
|
|
jmp $
|