Подготовлено рабочее пространство

This commit is contained in:
Пытков Роман
2025-09-16 00:48:22 +03:00
parent c155f98534
commit 95e5aab32d
5 changed files with 107 additions and 11 deletions

16
minimal/minimal.asm Normal file
View File

@@ -0,0 +1,16 @@
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