kjstreet 0 Newbie Poster

I am taking an Assembly language class. I have a project to allow the user to enter some text and then store it in a specific memory. I have the code to allow the user to enter text, but it keeps putting it in the wrong place. How do I change and tell it where to put it?

Here is my code so far:

.ORIG x3000 ; We'll place our trap in memory at address x3000

LEA R1,HELLO

AGAIN LDR R2,R1,#0

BRz NEXT

ADD R1,R1,#1

BR AGAIN

NEXT LEA R0,PROMPT

TRAP X22

LD R3, NEGENTER

AGAIN2 TRAP X20

TRAP X21

ADD R2,R0,R3

BRz CONT

STR R0, R1, #0

ADD R1, R1, #1

BR AGAIN2

CONT AND R2,R2,#0

STR R2, R2, #0

LEA R0, HELLO

TRAP X22

TRAP X25

NEGENTER .FILL XFFF6

PROMPT .STRINGZ "Please enter your name: "

HELLO .STRINGZ "HELLO,"

.BLKW #25

.END