From fd3b5cf62961c15f59acb63dad86865fc01ecb78 Mon Sep 17 00:00:00 2001 From: NightMachinary <36224762+NightMachinary@users.noreply.github.com> Date: Wed, 22 Dec 2021 23:10:43 +0330 Subject: [PATCH] Fixed errors (#4227) --- mips.html.markdown | 4 ++-- 1 file 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