bne

Operands

$reg, [$reg / imm], id

Variants

  • Branch on not equal : Branches to 'label' if $t1 != $t2. Opposite of 'beq'. Uses a PC-relative 16-bit signed offset. Commonly used to branch out of loops or skip else blocks. bne $t1,$t2,label
  • Branch if Not Equal : Branch to statement at label if $t1 is not equal to 16-bit immediate bne $t1,-100,label
  • Branch if Not Equal : Branch to statement at label if $t1 is not equal to 32-bit immediate bne $t1,100000,label

Branch on not equal : Branches to 'label' if $t1 != $t2. Opposite of 'beq'. Uses a PC-relative 16-bit signed offset. Commonly used to branch out of loops or skip else blocks.

Loading...