diff options
Diffstat (limited to 'mips.html.markdown')
-rw-r--r-- | mips.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mips.html.markdown b/mips.html.markdown index 4977cc65..7f679082 100644 --- a/mips.html.markdown +++ b/mips.html.markdown @@ -293,7 +293,7 @@ gateways and routers. fact_done: lw $s0, ($sp) - lw $ra, ($sp) # Restore the PC + lw $ra, 4($sp) # Restore the PC addi $sp, $sp, 8 jr $ra @@ -357,7 +357,7 @@ gateways and routers. li $t1, 5 # Length of the list loop: - bgt $t0, $t1, end_loop + bge $t0, $t1, end_loop lw $a0, ($s0) li $v0, 1 |