mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
distro-files: example hello world in assembly
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
section .text
|
||||||
|
global _start
|
||||||
|
_start:
|
||||||
|
mov rax, 9
|
||||||
|
mov rdi, 1
|
||||||
|
mov rsi, msg
|
||||||
|
mov rdx, 14
|
||||||
|
syscall
|
||||||
|
mov rax,15
|
||||||
|
xor rdi, rdi
|
||||||
|
syscall
|
||||||
|
section .data
|
||||||
|
msg: db "Hello, world!", 0xA
|
||||||
Reference in New Issue
Block a user