summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/mips-cn.html.markdown
diff options
context:
space:
mode:
authorBrian Holbrook <83974085+holbrookdev@users.noreply.github.com>2022-03-03 01:44:38 -0600
committerGitHub <noreply@github.com>2022-03-03 15:44:38 +0800
commitd208b72f6a82a78487b92382f204fbaa8a32990f (patch)
tree39997652711f9a87e0b41c8a0756db7fa5234c3d /zh-cn/mips-cn.html.markdown
parent414ac2918885d3eb07df839fb29df80425384f8f (diff)
[mips/*] Fix branching example (#4315)
Diffstat (limited to 'zh-cn/mips-cn.html.markdown')
-rw-r--r--zh-cn/mips-cn.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/mips-cn.html.markdown b/zh-cn/mips-cn.html.markdown
index 83888338..4f9ea7da 100644
--- a/zh-cn/mips-cn.html.markdown
+++ b/zh-cn/mips-cn.html.markdown
@@ -160,7 +160,7 @@ MIPS(Microprocessor without Interlocked Pipeline Stages)汇编语言是为
# 让 $s0 = a, $s1 = b, $s2 = c, $v0 = 返回寄存器
ble $s0, $s1, a_LTE_b # 如果 (a <= b) 跳转到 (a_LTE_b)
ble $s0, $s2, max_C # 如果 (a > b && a <= c) 跳转到 (max_C)
- move $v0, $s1 # 否则 [a > b && a > c] max = a
+ move $v0, $s0 # 否则 [a > b && a > c] max = a
j done # 跳转到程序结束
a_LTE_b: # 当 a <= b 时的标签