From 8f83ddc038d835868e0921841f4928ad094bb0bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Fri, 10 Jun 2016 21:42:38 +0200 Subject: [PATCH] Fixed my assembly!!!! --- src/power.asm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/power.asm b/src/power.asm index 0fce81b..b1f9154 100644 --- a/src/power.asm +++ b/src/power.asm @@ -7,12 +7,10 @@ _start: movq $3, %rsi # second argument movq $2, %rdi # first argument call power # call the function - ;addq $16, %rsp # move the stack pointer back pushq %rax # save the first answer on stack movq $2, %rsi # push the second argument movq $5, %rdi # push the first argument call power # call the function - ;addq $16, %rsp # move the stack pointer back popq %rdi # the second answer is still in %rax, # so we can put the first one from the