I am trying to make a program in LC3 that asks the user to enter a string and will proceed to print it out. My program is only ably to print out the first letter from the user inputted string. For example, I typed in "Hello" and it would only print out "H". Is there a way to fix this? thanks
.orig x3000
Lea r1, storeString
Lea r0, EnterText
puts
LOOP
getc
str r0, r1, 0
add r1, r0, -10
brz OUTSIDE
out
brnzp LOOP
OUTSIDE
Lea r0, UserEnter
puts
Lea r0, storeString
puts
Halt
EnterText .stringz "\nPlease enter a text: "
UserEnter .stringz "\nThe text you have typed is: "
storeString .BLKW 99
.end