userland HELLO WORLD
This commit is contained in:
+13
-1
@@ -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
|
||||
Reference in New Issue
Block a user