Advertisement
Lautaroleguizamon

B26

Sep 14th, 2023
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.     num1: .word 432
  3.     num2: .word 15
  4. .text
  5.     la x8 num1
  6.     la x9 num2
  7.     beq x0 x0 MaxDir
  8. MaxDir:
  9.     lw a0 0(x8)
  10.     lw a1 0(x9)
  11.     bgt a0 a1 mostrar1
  12.     beq x0 x0 fin
  13. mostrar1:
  14.     addi a0 x0 1
  15.     li a7 1
  16.     ecall
  17.     beq x0 x0 fin
  18. fin:
  19.     nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement