aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista6/puzzle7.s
diff options
context:
space:
mode:
Diffstat (limited to 'Semestr 4/ask/lista6/puzzle7.s')
-rw-r--r--Semestr 4/ask/lista6/puzzle7.s29
1 files changed, 0 insertions, 29 deletions
diff --git a/Semestr 4/ask/lista6/puzzle7.s b/Semestr 4/ask/lista6/puzzle7.s
deleted file mode 100644
index 6d26961..0000000
--- a/Semestr 4/ask/lista6/puzzle7.s
+++ /dev/null
@@ -1,29 +0,0 @@
- .global puzzle7
-
- .text
-puzzle7:
- movq %rsi, -40(%rsp)
- movq %rdx, -32(%rsp)
- movq %rcx, -24(%rsp)
- movq %r8, -16(%rsp)
- movq %r9, -8(%rsp)
- movl $8, -72(%rsp)
- leaq 8(%rsp), %rax
- movq %rax, -64(%rsp)
- leaq -48(%rsp), %rax
- movq %rax, -56(%rsp)
- movl $0, %eax
- jmp .L2
-.L3: movq -64(%rsp), %rdx
- leaq 8(%rdx), %rcx
- movq %rcx, -64(%rsp)
-.L4: addq (%rdx), %rax
-.L2: subq $1, %rdi
- js .L6
- cmpl $47, -72(%rsp)
- ja .L3
- movl -72(%rsp), %edx
- addq -56(%rsp), %rdx
- addl $8, -72(%rsp)
- jmp .L4
-.L6: ret