aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/ask/lista5/zad1.s
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
commitc5fcf7179a83ef65c86c6a4a390029149e518649 (patch)
treed29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 4/ask/lista5/zad1.s
parentf8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff)
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 4/ask/lista5/zad1.s')
-rw-r--r--Semestr 4/ask/lista5/zad1.s98
1 files changed, 0 insertions, 98 deletions
diff --git a/Semestr 4/ask/lista5/zad1.s b/Semestr 4/ask/lista5/zad1.s
deleted file mode 100644
index b935b9e..0000000
--- a/Semestr 4/ask/lista5/zad1.s
+++ /dev/null
@@ -1,98 +0,0 @@
- .file "zad1.c"
- .text
- .p2align 4
- .globl puzzle
- .type puzzle, @function
-puzzle:
-.LFB23:
- .cfi_startproc
- endbr64
- xorl %r8d, %r8d
- testl %esi, %esi
- je .L1
- xorl %eax, %eax
- .p2align 4,,10
- .p2align 3
-.L3:
- movl %edi, %edx
- addl $1, %eax
- sarq %rdi
- andl $1, %edx
- addl %edx, %r8d
- cmpl %esi, %eax
- jne .L3
-.L1:
- movl %r8d, %eax
- ret
- .cfi_endproc
-.LFE23:
- .size puzzle, .-puzzle
- .section .rodata.str1.1,"aMS",@progbits,1
-.LC0:
- .string "%ld%u"
- .section .text.startup,"ax",@progbits
- .p2align 4
- .globl main
- .type main, @function
-main:
-.LFB24:
- .cfi_startproc
- endbr64
- subq $40, %rsp
- .cfi_def_cfa_offset 48
- leaq .LC0(%rip), %rdi
- movq %fs:40, %rax
- movq %rax, 24(%rsp)
- xorl %eax, %eax
- leaq 12(%rsp), %rdx
- leaq 16(%rsp), %rsi
- call __isoc99_scanf@PLT
- movl 12(%rsp), %ecx
- movq 16(%rsp), %rax
- xorl %r8d, %r8d
- testl %ecx, %ecx
- je .L8
- xorl %edx, %edx
- .p2align 4,,10
- .p2align 3
-.L10:
- movl %eax, %esi
- addl $1, %edx
- sarq %rax
- andl $1, %esi
- addl %esi, %r8d
- cmpl %ecx, %edx
- jne .L10
-.L8:
- movq 24(%rsp), %rax
- xorq %fs:40, %rax
- jne .L16
- movl %r8d, %eax
- addq $40, %rsp
- .cfi_remember_state
- .cfi_def_cfa_offset 8
- ret
-.L16:
- .cfi_restore_state
- call __stack_chk_fail@PLT
- .cfi_endproc
-.LFE24:
- .size main, .-main
- .ident "GCC: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0"
- .section .note.GNU-stack,"",@progbits
- .section .note.gnu.property,"a"
- .align 8
- .long 1f - 0f
- .long 4f - 1f
- .long 5
-0:
- .string "GNU"
-1:
- .align 8
- .long 0xc0000002
- .long 3f - 2f
-2:
- .long 0x3
-3:
- .align 8
-4: