title: Compare user-inputted string/character to another string/character
body: <p>So I'm a bit of a beginner to ARM Assembly (assembly in general, too).  Right now I'm writing a program and one of the biggest parts of it is that the user will need to type in a letter, and then I will compare that letter to some other pre-inputted letter to see if the user typed the same thing.  </p>
  
  <p>For instance, in my code I have</p>
  
  <pre><code>.balign 4 /* Forces the next data declaration to be on a 4 byte segment */
  dime: .asciz "D\n"
  </code></pre>
  
  <p>at the top of the file and</p>
  
  <pre><code>addr_dime               : .word dime
  </code></pre>
  
  <p>at the bottom of the file.</p>
  
  <p>Also, based on what I've been reading online I put</p>
  
  <pre><code>.balign 4
  inputChoice: .asciz "%d"
  </code></pre>
  
  <p>at the top of the file, and put</p>
  
  <pre><code>inputVal                : .word 0
  </code></pre>
  
  <p>at the bottom of the file.  </p>
  
  <p>Near the middle of the file (just trust me that there is something wrong with this standalone code, and the rest of the file doesn't matter in this context) I have this block of code:</p>
  
  <pre><code>ldr r3, addr_dime
  ldr r2, addr_inputChoice
  cmp r2, r3                  /*See if the user entered D*/
  addeq r5, r5, #10           /*add 10 to the total if so*/
  </code></pre>
  
  <p>Which I THINK should load "D" into r3, load whatever String or character the user inputted into r2, and then add 10 to r5 if they are the same.</p>
  
  <p>For some reason this doesn't work, and the r5, r5, #10 code only works if addne comes before it.</p>