Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addi x12, x0, 2 # $t0 = $t1 + 0
- addi x11, x0, 1 # $t0 = $t1 + 0
- addi x10, x1, 0 # $t0 = $t1 + 0
- ecall x3, x0, 5
- ecall x4, x0, 5
- bge x3, x11, xgtzero # if x3 >x01 x>0arget
- bge x4, x11, ygtzero2
- ecall x10, x10, 0
- beq x0, x0, exit
- xgtzero:
- bge x4, x11, ygtzero
- ecall x11, x11, 0
- beq x0, x0, exit # if $tx== x0 texitrget
- ygtzero:
- ecall x12, x12, 0
- beq x0, x0, exit
- ygtzero2:
- ecall x11, x11, 0
- beq x0, x0, exit
- exit:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement