LC-3成绩排序统计流程图
2017-06-13 14:04:01 0 举报
计算机系统
作者其他创作
大纲/内容
是
R0 0 ?
R0 = R0 -1
R4 = 0 ?
R3 = 0 ?
A - B = A + NOT(B) + 1
R4 = R0 - 11
R2 = R2 +1R1 = R1 + 1R3 = R0 - R1
R3 = M[R1]M[4000] = R3R1 = R1 + 1R2 = R2 + 1R0 = R0 -1
R1 = 0R2 = X3200R3 = 1
M[R2] = R5M[R2+1] = R4
R3 = R3 - 5 * 15 - 9
统计A和B等级的人数
开始
用冒泡排序将成绩排序
R3 = M[R1]R3 = R3 -3*15-14
R3 = M[R1]R4 = R0 -7
R3 0 ?
R4 = 0 ?
R6 = R6 + 1
R4 =M[R2]R5 = M[R2+1]R3 = R4 -R5
结束
R2 = x4100R5 = M[R0]R6 = M[R0+1]
R5 = R5 + 1
R0 = 0R5 = 0R6 = 0R1 = X3000R2 = X4000 R0 = R0 + 15
R0 = 15
收藏
0 条评论
下一页