YouTip LogoYouTip

Assembly Tutorial - Getting Started

Assembly Basics

; x86-64 Hello World (NASM)
section .data
    msg db "Hello, World!", 10

section .text
    global _start
_start:
    mov rax, 1          ; sys_write
    mov rdi, 1          ; stdout
    mov rsi, msg
    mov rdx, 13
    syscall
    mov rax, 60         ; sys_exit
    xor rdi, rdi
    syscall

Summary

  • Assembly is the lowest-level programming language
  • Directly maps to machine instructions
← C# Tutorial - Getting StartedZig Tutorial - Getting Started β†’