Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main:
- #obtain first value to be added
- add $s0, $s0, $zero #s0 = 0
- li $v0, 4 #load instructions for printing out a prompt for A
- la $a0, promptForA #loads up what is stored in promptForA to be printed
- syscall #tells system to perform the previous instructions
- li $v0, 5 #load instructions to read in an int value
- syscall
Add Comment
Please, Sign In to add comment