Files
NASM/minimal/minimal.asm
2025-09-16 00:48:22 +03:00

16 lines
376 B
NASM

global _start
section .data
text_message: db "Welcome to NASM!", 0xA
section .text
_start:
mov rax, 1 ; write
mov rdi, 1 ; stdout
mov rsi, text_message
mov rdx, 17 ; длина строки в байтах
syscall
mov rax, 60 ; exit
mov rdi, 1 ; код возврата = 0
syscall