Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. .data
  2. input: .asciiz "Input: "
  3. string1: .asciiz "This is my "
  4. string2: .asciiz "-th MIPS program."
  5. .text
  6.  
  7. li $v0, 4
  8. la $a0, input
  9. syscall
  10.  
  11. li $v0, 5
  12. syscall
  13. move $t0, $v0
  14.  
  15. li $v0, 4
  16. la $a0, string1
  17. syscall
  18.  
  19. li $v0, 1
  20. move $a0,$t0
  21. syscall
  22.  
  23. li $v0, 4
  24. la $a0, string2
  25. syscall
  26.  
  27. li $v0, 10
  28. syscall
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement