title: LC3 Assembly Language Program
body: <p>How do you convert any character input from the user to its corresponding decimal value? I was just having trouble getting started. </p>
  
  <p>The program had to achieve the following things: </p>
  
  <ol>
  <li><p>The program accepts character from keyboard. </p></li>
  <li><p>If the character is a digit (‘0’ through ‘9’): 
  a) Convert the character to its corresponding decimal value. In other words, ‘0’ becomes zero, ‘1’ 
  becomes 1, ... ‘9’ becomes 9. Let’s call that value R (for “run length”). 
  b) Wait for another character (using GETC). 
  c) Print R copies of that character to the console. ) 
  d) Go back to Step 1. </p></li>
  <li><p>Else, if the character is Enter/Return (ASCII #10): Print a linefeed (ASCII #10) to the console, and 
  go back to Step 1. </p></li>
  <li>Else, if the character is anything else, halt the program. </li>
  </ol>