Advertisement
Lautaroleguizamon

B14

Sep 13th, 2023 (edited)
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.     string: .string "YVANEHTNIOJ"
  3.     indice: .word 0
  4. .text
  5.     la x5 indice
  6.     lw x5 0(x5)
  7.     la x6 string
  8.     li a7 11
  9. loop:
  10.     add x7 x5 x6
  11.     lb x8 0(x7)
  12.     beq x8 x0 mostrar
  13.     addi x5  x5 1
  14.     bne x8 x0 loop
  15. mostrar:
  16.     add x7 x5 x6
  17.     lb a0 0(x7)
  18.     ecall
  19.     addi x5 x5 -1
  20.     bne x7 x6 mostrar
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement