Guest User

Untitled

a guest
Jul 18th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. Wrong!
  2.  
  3. ##### Take Input
  4. li $v0, 8
  5. syscall
  6. la $a0, Input
  7.  
  8. AtomRouter% spim -f Reverse.s
  9. SPIM Version 7.5 of August 14, 2009
  10. Copyright 1990-2004 by James R. Larus (larus@cs.wisc.edu).
  11. All Rights Reserved.
  12. See the file README for a full copyright notice.
  13. Loaded: /usr/local/share/spim/exceptions.s
  14. Please enter a string up to 60 characters: test
  15. Memory Location Element 0: 268500992
  16. Letter in memory location:
  17. -----------------------
  18. Memory Location Element 0: 268500993
  19. Letter in memory location:
  20. -----------------------
  21. Memory Location Element 0: 268500994
  22. Letter in memory location:
  23. -----------------------
  24. Memory Location Element 0: 268500995
  25. Letter in memory location:
  26. -----------------------
  27.  
  28. ########################################################################################################
  29. RIGHT!!
  30.  
  31. ##### Take Input
  32. li $v0, 8
  33. la $a0, Input
  34. syscall
  35.  
  36. AtomRouter% spim -f Reverse.s
  37. SPIM Version 7.5 of August 14, 2009
  38. Copyright 1990-2004 by James R. Larus (larus@cs.wisc.edu).
  39. All Rights Reserved.
  40. See the file README for a full copyright notice.
  41. Loaded: /usr/local/share/spim/exceptions.s
  42. Please enter a string up to 60 characters: test
  43. Memory Location Element 0: 268500992
  44. Letter in memory location: t
  45. -----------------------
  46. Memory Location Element 0: 268500993
  47. Letter in memory location: e
  48. -----------------------
  49. Memory Location Element 0: 268500994
  50. Letter in memory location: s
  51. -----------------------
  52. Memory Location Element 0: 268500995
  53. Letter in memory location: t
  54. -----------------------
Add Comment
Please, Sign In to add comment