how can i make this code more efficient (e.g less code inside the loop)?
loop: beq $a0, $a1, exit
slt $t0, $a0, $a1
bne $t0, $zero, label
sub $a0, $a0, $a1
j loop
label: sub $a1, $a1, $a0
j loop
exit: add $v0, $zero, $a0
thanx