Created
September 28, 2013 00:30
-
-
Save tonussi/6737035 to your computer and use it in GitHub Desktop.
fibi.asm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addi $sp, $sp, -16 | |
fib: | |
slt $t0, $a2, 0 | |
add $v0, $zero, $t0 | |
nme $t0, 0, exit | |
add $a0, $a0, $a1 | |
subi $a1, $a2, 1 | |
jal fib | |
exit: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment