Loop: beq $t5, $a1, Exit # if t5 == a1, exit loop lw $t0, 0($a0) # Load fib(n-2) lw $t1, 4($a0) # Load fib(n-1) add $t2, $t0, $t1 # Calculate fib(n) sw $t2, 8($a0) # Store fib(n) add $a0, $a0, $s1 # s1 contains 4 add $t5, $t5, $s2 # s1 contains 1 j Loop Exit: