20.01.2014 Views

Introduction to the Altera Nios II Soft Processor - FTP - Altera

Introduction to the Altera Nios II Soft Processor - FTP - Altera

Introduction to the Altera Nios II Soft Processor - FTP - Altera

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Branch if Less Than Signed instruction<br />

blt rA, rB, LABEL<br />

performs <strong>the</strong> comparison rA < rB, treating <strong>the</strong> contents of <strong>the</strong> registers as signed numbers.<br />

The Branch if Less Than Unsigned instruction<br />

bltu rA, rB, LABEL<br />

performs <strong>the</strong> comparison rA < rB, treating <strong>the</strong> contents of <strong>the</strong> registers as unsigned numbers.<br />

The o<strong>the</strong>r Conditional Branch instructions are:<br />

• beq rA, rB, LABEL<br />

• bne rA, rB, LABEL<br />

• bge rA, rB, LABEL<br />

• bgeu rA, rB, LABEL<br />

(Comparison rA == rB)<br />

(Comparison rA != rB)<br />

(Signed comparison rA >= rB)<br />

(Unsigned comparison rA >= rB)<br />

• bgt rA, rB, LABEL (Signed comparison rA > rB)<br />

This is a pseudoinstruction implemented as <strong>the</strong> blt instruction by swapping <strong>the</strong> register operands.<br />

• bgtu rA, rB, LABEL (Unsigned comparison rA > rB)<br />

This is a pseudoinstruction implemented as <strong>the</strong> bltu instruction by swapping <strong>the</strong> register operands.<br />

• ble rA, rB, LABEL (Signed comparison rA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!