userland HELLO WORLD

This commit is contained in:
2026-04-02 19:11:37 +02:00
parent aa30d9c6b5
commit dbffb7f5fa
2 changed files with 54 additions and 6 deletions
+13 -1
View File
@@ -1,4 +1,16 @@
bits 64
section .data
hi db "hi from userland :) we did it man", 0
section .text
hello:
mov rax, 0xcafebabe
mov rax, 0x1 ;sys_write
mov rdi, 0x1 ;stdout
lea rsi, [rel hi] ;char* buf
mov rdx, 33 ;count
int 0x80
.loop:
jmp .loop