title: MARIE: How to print a name
body: <p>I got a question that wants the user to input a first name and a last name and then print it out.
  The question also wants me to <strong>print out a space between the first and last name</strong> as well, which I am having trouble figuring out how to do that. I have also made it so that if the user inputs '$', the program will stop taking in inputs and move on to the printing subroutine. This is my code so far.</p>
  <pre><code> /main program
   FirstNameLoop,     JnS SubInputFirstName
                      Load Name
                      Add One
                      Store Name
                      Jump FirstNameLoop
  
   LastNameLoop,      Jns SubInputLastName
                      Load Name
                      Add One
                      Store Name
                      Jump LastNameLoop
  
  
   /subroutine for inputting firstname
   SubInputFirstName, Hex 0
                      Input
                      Store Temp
                      Subt Comma
                      Skipcond 400
                      Jump StoreFirstName
                      Load Comma
                      Add One
                      StoreI Name
                      Jump LastNameLoop
   StoreFirstName,    Load Temp
                      StoreI Name
                      JumpI SubInputFirstName
                  
   End,               JnS subPrintString
                      Load NamePrint
                      Add One
                      Store NamePrint
                      Jump End
   Finish,            Halt
                  
  
   /subroutine for entering last name                    
   SubInputLastName,  HEX 0
                      Input 
                      Store Temp
                      Subt Dollar
                      Skipcond 400
                      Jump StoreLastName
                      Jump End
  
   StoreLastName,     Load Temp
                      StoreI Name
                      JumpI SubInputLastName
  
  
   /subroutine for printing name
   subPrintString,    HEX 0
                      LoadI NamePrint
                      Store Temp
                      Subt Period
                      Skipcond 400
                      Jump PrintName
                      Jump Finish
   PrintName,         Load Temp               
                      Output
                      JumpI subPrintString
                  
   NamePrint, HEX 300       
   Dollar, Dec 36
   Name, HEX 300
   One, DEC 1
   Temp, DEC 0
   Space, DEC 32
   Comma, DEC 44
   Period, DEC 46
  </code></pre>