Category:MIPS Assembly: Difference between revisions

m
Line 91:
* Effect: Compares the register operands, and if they're not equal, adds (signed) the specified offset to <code>PC</code>. (usually a labeled line of code that the assembler translates to a calculated offset.) Otherwise, execution falls through to the ''instruction after the instruction after'' the <code>bne</code>. This is not a typo, that's how MIPS works.
 
===BNEBNEZ===
* Stands for: '''B'''ranch if '''N'''ot '''E'''qual to '''Z'''ero
* Usage: <code>bnebnez $operand1labeloperand1,label</code>
* Example: <code>bnebnez $t0,$t1,T0_Nonzero</code>
* Effect: ComparesIf the register operands,operand and if theydoesn'ret notcontain equalzero, adds (signed) the specified offset to <code>PC</code>. (usually a labeled line of code that the assembler translates to a calculated offset.) Otherwise, execution falls through to the ''instruction after the instruction after'' the <code>bnez</code>. This is not a typo, that's how MIPS works.
 
==See Also==
1,489

edits