# Sample x86-64 Linux assembly (GNU as, Intel syntax) — samplefiles.com # Build: as -o hello.o hello.s && ld -o hello hello.o .intel_syntax noprefix .section .data msg: .ascii "Hello from samplefiles.com\n" .set msglen, . - msg .section .text .globl _start _start: mov rax, 1 # sys_write mov rdi, 1 # stdout lea rsi, [rip + msg] mov rdx, msglen syscall mov rax, 60 # sys_exit xor rdi, rdi # status 0 syscall