Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- string: .string "YVANEHTNIOJ"
- indice: .word 0
- .text
- la x5 indice
- lw x5 0(x5)
- la x6 string
- li a7 11
- loop:
- add x7 x5 x6
- lb x8 0(x7)
- beq x8 x0 mostrar
- addi x5 x5 1
- bne x8 x0 loop
- mostrar:
- add x7 x5 x6
- lb a0 0(x7)
- ecall
- addi x5 x5 -1
- bne x7 x6 mostrar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement