Následující program napsaný v assembleru pro architekturu amd64 (x86-64) nedělá vůbec nic. Je to jen pokus o nejednodušší kód do kterého pak mohu doplňovat další instrukce.
# File: examples/as/hello.s .section .data .section .text .global _start _start: # Entry point # _exit() xorq %rax, %rax # %rax = 0 incq %rax # %rax = 1 xorq %rbx, %rbx # %rbx = 0 int $0x80
$
as -o hello.o hello.s$
ld -o hello -O0 hello.o$
./hello