x86 64 Assembly NASM Linux — reference sample — DedSec Project
global _start section .data msg db "Hello, Ada!", 10 len equ $ - msg section .text _start: mov rax, 1 mov rdi, 1 mov rsi, msg mov rdx, len syscall mov rax, 60 xor rdi, rdi syscall
Source reference
global _start
section .data
msg db "Hello, Ada!", 10
len equ $ - msg
section .text
_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, len
syscall
mov rax, 60
xor rdi, rdi
syscall