Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- vector: .word 100,-20,40,-365,400,65536,1,0,3,-10
- marca:
- coma: .string ","
- .text
- la a3,vector
- la a1,marca
- la a2,coma
- sub a1,a1,a3
- srai a1,a1,2
- printvector:
- addi a1,a1,-1
- lw a0,0(a3)
- li a7,1
- ecall
- beq a1,x0,fin
- lw a0,0(a2)
- li a7,11
- ecall
- addi a3,a3,4
- blt x5,a1,printvector
- fin:
- beq x0,x0,fin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement