feat: минимальное решение
This commit is contained in:
21
08-debugging/testee.asm
Normal file
21
08-debugging/testee.asm
Normal file
@ -0,0 +1,21 @@
|
||||
global _start
|
||||
|
||||
section .data
|
||||
msg: db "I'm alive", `\n`, 0
|
||||
msg_len equ $-msg
|
||||
|
||||
section .text
|
||||
_start:
|
||||
xor rax, rax,
|
||||
add rax, 1
|
||||
add rax, 12
|
||||
|
||||
mov rax, 1
|
||||
mov rdi, 1
|
||||
mov rsi, msg
|
||||
mov rdx, msg_len
|
||||
syscall
|
||||
|
||||
mov rax, 60
|
||||
mov rdi, 0
|
||||
syscall
|
||||
Reference in New Issue
Block a user