diff --git a/README.md b/README.md index 0385e65..fe252ec 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # Hello World -Here are the most popular and diverse types of hello world in different programming languages. / Здесь самые отбитые и разнообразные типы hello world на разных языках пронграмирования. +🤖 Этот проект на 100% сгенерирован с помощью ИИ. Простите меня. / 🤖 This project is 100% AI-generated. Forgive me. + +Here are the most popular and diverse types of hello world in different programming languages. + +Здесь самые отбитые и разнообразные типы hello world на разных языках пронграмирования. diff --git a/helloworld b/helloworld deleted file mode 100644 index 557db03..0000000 --- a/helloworld +++ /dev/null @@ -1 +0,0 @@ -Hello World diff --git a/helloworld.asm b/helloworld.asm new file mode 100644 index 0000000..f233257 --- /dev/null +++ b/helloworld.asm @@ -0,0 +1,19 @@ +section .data + hello db 'Hello, World!', 0xA ; Строка с символом перевода строки + helloLen equ $-hello ; Вычисление длины строки + +section .text + global _start + +_start: + ; Системный вызов sys_write (вывод на экран) + mov rax, 1 ; Номер системного вызова sys_write + mov rdi, 1 ; Дескриптор файла (1 - stdout) + mov rsi, hello ; Указатель на строку + mov rdx, helloLen ; Длина строки + syscall ; Вызов ядра + + ; Системный вызов sys_exit (завершение) + mov rax, 60 ; Номер системного вызова sys_exit + xor rdi, rdi ; Код завершения 0 + syscall ; Вызов ядра