new folder asm
This commit is contained in:
parent
020be27e57
commit
2f5ea78196
4 changed files with 19 additions and 0 deletions
1
asm/.gitignore
vendored
Normal file
1
asm/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
l1.o
|
||||
1
asm/README.md
Normal file
1
asm/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Ой нееее зря я сюда полез
|
||||
17
asm/l1.asm
Normal file
17
asm/l1.asm
Normal file
|
|
@ -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
|
||||
BIN
asm/output/l1
Executable file
BIN
asm/output/l1
Executable file
Binary file not shown.
Loading…
Reference in a new issue