3.2.1 Conditional Branches



Equality Tests

Mnemonic Format Unit Semantics Description
beq cJ
if(r.j == 0) { pc += 3*target ;nseq } Branch if Equal to zero
bne cJ
if(r.j != 0) { pc += 3*target ;nseq } Branch if Not Equal to zero


Fast Relational Tests

Mnemonic Format Unit Semantics Description
bge cJ
if(r.j >= 0) { pc += 3*target ;nseq } Branch if Greater or Equal to zero
blt cJ
if(r.j < 0) { pc += 3*target ;nseq } Branch if Less Than zero


Slow Relational Tests

Mnemonic Format Unit Semantics Description
bgt cJ
if(r.j > 0) { pc += 3*target ;nseq } Branch if Greater Than zero
ble cJ
if(r.j <= 0) { pc += 3*target ;nseq } Branch if Less or Equal to zero