Untitled


SUBMITTED BY: Guest

DATE: Nov. 27, 2013, 2:24 a.m.

FORMAT: Text only

SIZE: 414 Bytes

HITS: 40569

  1. .data
  2. op: .space 3
  3. query: .asciiz "Gob's Program: Y/N?\n?"
  4. penus: .asciiz "Penus "
  5. .text
  6. .globl __start
  7. __start:
  8. la $a0, query
  9. li $v0, 4
  10. syscall
  11. la $a0, op
  12. li $a1, 3
  13. li $v0, 8
  14. syscall
  15. lb $t9, op
  16. beq $t9, 'y', gob
  17. j end
  18. gob:
  19. la $a0, penus
  20. li $v0, 4
  21. syscall
  22. j gob
  23. end:
  24. li $v0, 10
  25. syscall

comments powered by Disqus