Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .eqv TAM_VET 10
- .data
- vetA: .word 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- n: .word 8
- .text
- la $s0, vetA
- lw $t9, n
- loop:
- lw $s1, 0($s0)
- beq $s1, $t9, resultado
- addi $s0, $s0, 4
- addi $t0, $t0, 1
- j loop
- resultado:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement