Category:MIPS Assembly: Difference between revisions
m
→BEQ: typo fix
Puppydrum64 (talk | contribs) m (→BNE) |
Puppydrum64 (talk | contribs) 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,
* 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
|