Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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 на разных языках пронграмирования.
1 change: 0 additions & 1 deletion helloworld

This file was deleted.

19 changes: 19 additions & 0 deletions helloworld.asm
Original file line number Diff line number Diff line change
@@ -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 ; Вызов ядра