Код: Выделить всё
section .data
hello db 'Hello, World!', 0
section .text
global _start
_start:
; Write the message to stdout
mov rax, 1 ; sys_write system call
mov rdi, 1 ; file descriptor 1 (stdout)
mov rsi, hello ; pointer to the message
mov rdx, 13 ; message length
syscall ; invoke system call
; Exit the program
mov rax, 60 ; sys_exit system call
xor rdi, rdi ; exit status 0
syscall ; invoke system call