Mips Instruction Format Cheat Sheet Page 11

ADVERTISEMENT

Now restore the old values of the registers by popping
the stack.
lw $s0, 0($sp)
# restore $s0
lw $t0, 4($sp)
# restore $t0
lw $t1, 8($sp)
# restore $t1
addi $sp, $sp, 12
# adjust $sp
Finally, return to the main program.
jr $ra
# return to
caller.

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education