43 lines
584 B
NASM
43 lines
584 B
NASM
; This is a compliant "kernel" meant for testing purposes.
|
|
|
|
; Header
|
|
section .stivale2hdr
|
|
|
|
stivale_header:
|
|
dq 0 ; entry point
|
|
dq stack.top ; rsp
|
|
dq 0 ; flags
|
|
dq lv5 ; tags
|
|
|
|
section .rodata
|
|
|
|
lv5:
|
|
dq 0x932f477032007e8f
|
|
dq smp
|
|
|
|
smp:
|
|
dq 0x1ab015085f3273df
|
|
dq 0
|
|
dq 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 rdx, 0xb8000
|
|
mov [rdx], rax
|
|
mov [rdx+8], rbx
|
|
mov [rdx+16], rcx
|
|
jmp $
|