NASM Coding: Basics - Program Examples

  1. ; The only thing that this program does is terminating.
    ; This is the same as running the C program:
    ; int main()
    ; {
    ;     return 0;
    ; }
    
    section .text
        global _start
    
    _start:
        mov rax, 60
        mov rdi, 0
        syscall