Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. main:
  2.  
  3. #obtain first value to be added
  4. add $s0, $s0, $zero #s0 = 0
  5.  
  6. li $v0, 4 #load instructions for printing out a prompt for A
  7. la $a0, promptForA #loads up what is stored in promptForA to be printed
  8. syscall #tells system to perform the previous instructions
  9.  
  10. li $v0, 5 #load instructions to read in an int value
  11. syscall
Add Comment
Please, Sign In to add comment