section .data
    msg db "Hello World", 10    ; Define the message with a newline character
    len equ $ - msg             ; Calculate the length of the message

section .text
    global _start

_start:
    ; sys_write (write to stdout)
    mov rax, 1          ; System call number for sys_write
    mov rdi, 1          ; File descriptor (1 = stdout)
    mov rsi, msg        ; Pointer to the message
    mov rdx, len        ; Length of the message
    syscall             ; Invoke the system call

    ; sys_exit (exit the program)
    mov rax, 60         ; System call number for sys_exit
    mov rdi, 0          ; Exit code (0 = success)
    syscall             ; Invoke the system call
