From 74e890b26e9e6b9152fba41ef399c548321f7a60 Mon Sep 17 00:00:00 2001 From: "Hazal2.Veziroglu@live.uwe.ac.uk" <hazal2.veziroglu@live.uwe.ac.uk> Date: Mon, 25 Nov 2024 16:39:51 +0000 Subject: [PATCH] Upload New File --- worksheet1/task1.asm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 worksheet1/task1.asm diff --git a/worksheet1/task1.asm b/worksheet1/task1.asm new file mode 100644 index 0000000..0442b2c --- /dev/null +++ b/worksheet1/task1.asm @@ -0,0 +1,17 @@ +section .data + num1 dd 10 + num2 dd 20 + result dd 0 + +section .text + global asm_main + extern print_int + +asm_main: + mov eax, [num1] + add eax, [num2] + mov [result], eax + push eax + call print_int + add esp, 4 + ret -- GitLab