tne

Operands

$reg, $reg

Trap if not equal : Raises a trap exception if $t1 != $t2. In MARS this halts execution. Opposite of 'teq'.

Variants

  • Trap if not equal : Raises a trap exception if $t1 != $t2. In MARS this halts execution. Opposite of 'teq'. tne $t1,$t2
# tne stops with a trap when its initialized predicate is true; $t2=99 is never reached.
li $t0, 5
li $t1, 6
tne $t0, $t1
li $t2, 99 # not reached