tne
Trap if not equal
Raises a trap exception if $t1 does not equal $t2, which halts execution in this simulator.
Forms
tne ,
Operands
$t1- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31). $t2- A general-purpose register. It may be the same register as
$t1.
In MARS this halts execution. Opposite of 'teq'.
# 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