hello world
This commit is contained in:
18
game.s
Normal file
18
game.s
Normal 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
|
||||
Reference in New Issue
Block a user