diff options
author | Brian Holbrook <83974085+holbrookdev@users.noreply.github.com> | 2022-03-03 01:44:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 15:44:38 +0800 |
commit | d208b72f6a82a78487b92382f204fbaa8a32990f (patch) | |
tree | 39997652711f9a87e0b41c8a0756db7fa5234c3d /mips.html.markdown | |
parent | 414ac2918885d3eb07df839fb29df80425384f8f (diff) |
[mips/*] Fix branching example (#4315)
Diffstat (limited to 'mips.html.markdown')
-rw-r--r-- | mips.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mips.html.markdown b/mips.html.markdown index 7f679082..0e7a7d0c 100644 --- a/mips.html.markdown +++ b/mips.html.markdown @@ -193,7 +193,7 @@ gateways and routers. # Let $s0 = a, $s1 = b, $s2 = c, $v0 = return register ble $s0, $s1, a_LTE_b # if(a <= b) branch(a_LTE_b) ble $s0, $s2, max_C # if(a > b && a <=c) branch(max_C) - move $v0, $s1 # else [a > b && a > c] max = a + move $v0, $s0 # else [a > b && a > c] max = a j done # Jump to the end of the program a_LTE_b: # Label for when a <= b |