Category:MIPS Assembly: Difference between revisions

m
→‎BEQ: typo fix
m (→‎BEQ: typo fix)
Line 77:
* Stands for: '''B'''ranch if '''Eq'''ual
* Usage: <code>beq $operand1,$operand2,label</code>
* Example: <code>beq $t0,$t1,T0NotEqualtoT1T0_equals_T1</code>
* Effect: Compares the register operands, and if they're 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>beq</code>. This is not a typo, that's how MIPS works.
 
===BEQZ===
* Stands for: '''B'''ranch if '''Eq'''ual to '''Z'''ero
1,489

edits