Advertisement
asharma

sign

Feb 26th, 2019
1,229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addi    x12, x0, 2          # $t0 = $t1 + 0
  2. addi    x11, x0, 1          # $t0 = $t1 + 0
  3. addi    x10, x1, 0          # $t0 = $t1 + 0
  4.  
  5. ecall   x3, x0, 5
  6. ecall   x4, x0, 5
  7.  
  8. bge     x3, x11, xgtzero    # if x3 >x01 x>0arget
  9. bge     x4, x11, ygtzero2
  10. ecall   x10, x10, 0
  11. beq     x0, x0, exit
  12.  
  13.  
  14.  
  15.  
  16. xgtzero:
  17.         bge x4, x11, ygtzero
  18.         ecall   x11, x11, 0
  19.         beq     x0, x0, exit    # if $tx== x0 texitrget
  20.  
  21. ygtzero:
  22.         ecall   x12, x12, 0
  23.         beq     x0, x0, exit
  24.  
  25.  
  26. ygtzero2:
  27.         ecall   x11, x11, 0
  28.         beq     x0, x0, exit
  29.  
  30.  
  31.  
  32.  
  33. exit:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement