Files
asm_game/game.s
2025-02-03 21:32:00 +00:00

18 lines
466 B
ArmAsm

global _start
section .text
_start:
mov rax, 1 ; sys_write
mov rdi, 1 ; out
mov rsi, helloThere ; str
mov rdx, helloThereLen ; size
syscall ;
mov rax, 60 ; sys_exit
mov rdi, 0 ; code
syscall ;
section .rodata
helloThere: db "Hello there ;)", 0xA, "General Kenobi!!!", 0xA
helloThereLen: equ $ - helloThere