Assembly

sumber :

Linux

sementara versi 64bit

Contoh kode sederhana beserta penjelasan : (misal nama file hello.asm)

section .data
    text db "Hello world", 10

section .text
    global _start

_start:
    mov rax, 1
    mov rdi, 1
    mov rsi, text
    mov rdx, 14
    syscall

    mov rax, 60
    mov rdi, 0
    syscall

run :

sudo apt install nasm
nasm -f elf64 -o hello.o hello.asm
ld hello.o -o hello
./hello