всякое

This commit is contained in:
Пытков Роман
2025-09-21 19:25:45 +03:00
parent 62bcc7f9cd
commit 6ef051900a
11 changed files with 615 additions and 52 deletions

View File

@@ -1,5 +1,6 @@
global main
extern sum, print, scan, test_vector, a
extern sum, print, scan
extern a
section .text
main:
@@ -11,11 +12,12 @@ main:
mov rsi, rax ; b
call sum ; сумма
mov rdi, rax ; результат
push rax
call print ; напечатать
call test_vector
pop rax
pop rbx ; восстановить rbx
mov dword [rel a], 42 ; записать значение 42 в переменную a
mov dword [rel a], eax ; записать значение 42 в переменную a
mov rdi, 0
mov rax, 60