title: lc3 assembly - converting ASCII to numeric
body: <p>I have an ASCII character in R0 and have been given the following instructions in order to return the numeric equivalent in R0:</p>
  
  <pre><code>Find the index of the given ASCII_digit in “0123456789ABCDEF”
  The index is the Numeric_Digit equivalent of the given ASCII_Digit
  </code></pre>
  
  <p>Seems like it would be a piece of cake but the process of checking character by character of :</p>
  
  <pre><code>DIGITS  .STRINGZ "0123456789ABCDEF" ;Digit_String
  </code></pre>
  
  <p>Is what entirely confuses me.</p>
  
  <p>How would you accomplish that?</p>
  
  <p>I suppose you would add the inverse of the string at the current index to the ASCII in R0 and if it returns 0 you found your character?</p>
  
  <p>Please advise.</p>
  
  <p>Thank you</p>