Advertisement
vim_fans

Untitled

Nov 7th, 2021
1,873
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fact:
  2. addi $sp, $sp,8 # adjust stack for 2 items
  3. sw $ra, 4($sp) # save the return address
  4. sw $a0, 0($sp) # save the argument n
  5.  
  6.  
  7. /*
  8. What confused me is that why the last line did not need to shift 4 bytes?  I mean that sw $a0, 4($sp)
  9. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement