【发布时间】:2019-04-25 11:55:11
【问题描述】:
非常坚持这个任务
这是我必须做的:
到目前为止,我已经到了第 3 行,目前卡在第 4、5、6 和 7 行
到目前为止我所做的代码是这样的:
.orig x3000
Lea r1, storeString
Lea r0, PrintStudent
puts
Lea r0, EnterText
puts
LOOP
getc
out
str r0, r1, 0
add r1, r1, 1
add r0, r0, -10
brz OUTSIDE
brnzp LOOP
OUTSIDE
Lea r0, UserEnter
puts
Lea r0, storeString
puts
Halt
PrintStudent .stringz "Francois Van Zyl"
EnterText .stringz "\nPlease enter a text: "
UserEnter .stringz "\nThe text you have typed is: "
storeString .blkw 99
.end
【问题讨论】:
标签: lc3