Files
pepperOS/user/hello.S
T
2026-04-03 19:18:08 +02:00

21 lines
352 B
ArmAsm

bits 64
section .data
hi db "hi from userland :) we did it man", 0
section .text
hello:
mov rax, 0x1 ;sys_write
mov rdi, 0x1 ;stdout
lea rsi, [rel hi] ;char* buf
mov rdx, 33 ;count
int 0x80
.end:
mov rax, 0x3C ;sys_exit
mov rdi, 0x0 ;error_code
int 0x80
.loop:
jmp .loop