summaryrefslogtreecommitdiff
path: root/3/5_arith_and_logic/store_uprod.s
diff options
context:
space:
mode:
Diffstat (limited to '3/5_arith_and_logic/store_uprod.s')
-rw-r--r--3/5_arith_and_logic/store_uprod.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/3/5_arith_and_logic/store_uprod.s b/3/5_arith_and_logic/store_uprod.s
new file mode 100644
index 0000000..a099e77
--- /dev/null
+++ b/3/5_arith_and_logic/store_uprod.s
@@ -0,0 +1,27 @@
+ .file "store_uprod.c"
+ .text
+ .globl store_uprod
+ .type store_uprod, @function
+store_uprod:
+.LFB0:
+ .cfi_startproc
+ movq %rsi, %rax
+ mulq %rdx
+ movq %rax, (%rdi)
+ movq %rdx, 8(%rdi)
+ ret
+ .cfi_endproc
+.LFE0:
+ .size store_uprod, .-store_uprod
+ .globl main
+ .type main, @function
+main:
+.LFB1:
+ .cfi_startproc
+ movl $0, %eax
+ ret
+ .cfi_endproc
+.LFE1:
+ .size main, .-main
+ .ident "GCC: (GNU) 12.3.0"
+ .section .note.GNU-stack,"",@progbits