diff --git a/asm/.gitignore b/asm/.gitignore new file mode 100644 index 0000000..f1b900e --- /dev/null +++ b/asm/.gitignore @@ -0,0 +1 @@ +l1.o diff --git a/asm/README.md b/asm/README.md new file mode 100644 index 0000000..e1b7fe8 --- /dev/null +++ b/asm/README.md @@ -0,0 +1 @@ +Ой нееее зря я сюда полез diff --git a/asm/l1.asm b/asm/l1.asm new file mode 100644 index 0000000..f237e4e --- /dev/null +++ b/asm/l1.asm @@ -0,0 +1,17 @@ +section .data + msg db 'Hello, World!', 0xa ; Перенос строки и данные на новой строке + len equ $ - msg + +section .text + global _start + +_start: + mov rax, 1 + mov rdi, 1 + mov rsi, msg + mov rdx, len + syscall + + mov rax, 60 + xor rdi, rdi + syscall diff --git a/asm/output/l1 b/asm/output/l1 new file mode 100755 index 0000000..6fea15c Binary files /dev/null and b/asm/output/l1 differ