非常坚持这项任务
这是我要做的事情:
到目前为止,我已经到了第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