LC3 - 任何人都可以帮我完成这项任务吗?

问题描述 投票:0回答:1

非常坚持这项任务

这是我要做的事情:

Picture of the assignment

到目前为止,我已经到了第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
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.