Advertisement
Terrys

lab1_2a

Jun 4th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ###################################################
  2. # #
  3. # lab1_1.s #
  4. # Pseudoinstruction examples - System calls #
  5. # t0 - holds each byte from string in turn #
  6. # t1 - contains count of characters #
  7. # t2 - points to the string #
  8. # #
  9. ###################################################
  10. ###################################################
  11. # #
  12. # text segment #
  13. # #
  14. ###################################################
  15. .text
  16. li $v0,10
  17. syscall
  18. #################################################
  19. # #
  20. # data segment #
  21. # #
  22. #################################################
  23. .data
  24. B1: .byte 0x01 0x02 0x03 0x04
  25. B2: .byte 0x81 0x82 0x83 0x84
  26. W: .word 0x12345678 0x87654321
  27.  
  28. #################################################
  29. # #
  30. # End of File #
  31. # #
  32. #################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement