title: How do I print the amount of character's in an LC3/assembly code program
body: <p>Basically my code will have me enter some text then it will print back what I entered. As it stands the code when I am entering text is weird symbols but prints what I actually type. Apart from that I want to know how to make my program print how many characters are being entered and display that number back(output) </p>
  
  <pre><code>.orig   x3000
  Lea r1, storeString
  
  Lea r0, PrintStudent
  puts
  
  Lea r0, EnterText
  puts
  
  LOOP
  getc
  
  str r0, r1, 0
  add r1, r1, 1
  add r0, r0, -10
  
  brz OUTSIDE
  out
  
  brnzp LOOP
  
  OUTSIDE
  
  Lea r0, UserEnter
  puts
  
  Lea r0, storeString
  puts
  
  Halt
  PrintStudent .stringz "Hi it's me"
  EnterText .stringz "\nPlease enter a text: "
  UserEnter .stringz "\nThe text you have typed is: "
  storeString .blkw 99
  
  .end
  </code></pre>