hello world

This commit is contained in:
2025-02-03 21:32:00 +00:00
parent 5e28619330
commit 534a7ca677
6 changed files with 58 additions and 1 deletions

18
game.s Normal file
View File

@@ -0,0 +1,18 @@
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