Editing MIPS
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 219: | Line 219: | ||
<br>Branching (jump-if):<br> | <br>Branching (jump-if):<br> | ||
− | <code>beq a(r?|num) b(r?|num) c(r?|num)</code> | + | <code>beq a(r?|num) b(r?|num) c(r?|num)</code> branch to (label or linenumber) '''a''' if '''b''' equal '''c'''<br> |
− | <code>bne a(r?|num) b(r?|num) c(r?|num)</code> | + | <code>bne a(r?|num) b(r?|num) c(r?|num)</code> branch to (label or linenumber) '''a''' if '''b''' not-equal '''c'''<br> |
− | <code>bgt a(r?|num) b(r?|num) c(r?|num)</code> | + | <code>bgt a(r?|num) b(r?|num) c(r?|num)</code> branch to (label or linenumber) '''a''' if '''b''' greater than '''c'''<br> |
− | <code>blt a(r?|num) b(r?|num) c(r?|num)</code> | + | <code>blt a(r?|num) b(r?|num) c(r?|num)</code> branch to (label or linenumber) '''a''' if '''b''' less than '''c'''<br> |
− | The suffix -al can be added to each of these (example: beqal) to save the '''next''' line number into the "return address" register | + | The suffix -al can be added to each of these (example: beqal) to save the '''next''' line number into the "return address" register |
<br>Device interactions: | <br>Device interactions: |