Write an LC-3 assembly language subroutine, named GETS, which will allow an user to input and store in memory a character string (length<=9) untill the newline character(ASCII decimal 10) is read. The beginning address of the memory location where the string is to be stored is passed to the subroutine in register R1.
write a program that calls the subroutine GETS to input a string and then uses PUTS to display it on the screen.
You must document the protocols for passing parameters and returning the result to the subroutine and also follow the convertion of saving and restoring registers in the subroutine.