Skip to content
Snippets Groups Projects
Commit 37372675 authored by ACIKBAS TUNA's avatar ACIKBAS TUNA
Browse files

fonc pow10 fini

parent 3ede4521
No related merge requests found
......@@ -4,20 +4,16 @@
.text:
main:
li $a0 01101001
li $a0 4
jal sub_pow_init
move $a0 $v1
li $v0 1
syscall
continue:
j Exit
cell_lecture_bit:
......@@ -29,10 +25,12 @@ cell_lecture_bit:
sllv $a0, $a0,$a1
srl $a0, $a0,31
jr $ra
li $v0, 1
jal pow
move $t0 $t3
sub_pow_init:
addi $sp $sp -4
sw $ra 0($sp)
li $v1, 1
j pow_10
pow_10: #function to get the 10**n for a given n
......@@ -46,10 +44,8 @@ pow_10: #function to get the 10**n for a given n
b pow_10
continue:
#epilogue
#recup raa de sp
#move ra_sp dans dans ra
jr $ra
lw $ra 0($sp)
jr $ra
Exit:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment