title: assembly code to add two integers
body: <p>I have trouble understanding the following assembly code which is used to add two integers using registers. It's not a very cumbersome question, just that I lack any good reference to learn the syntax. If you can provide me with the insight line by line. I would be extremely grateful.</p>
  
  <pre><code>MOV R1, #100
  MOV R2, #100
  MOV (R1), #50
  ADD R2,(R1)
  </code></pre>
  
  <p>I get the first two lines which will store number 100 in the given registers, I just don't get the purpose of using brackets in next two lines.
  And this is not homework, Just a question to clarify the theory behind it.</p>
  
  <p>Question is what are the values of R1, R2 after the instructions have been executed.</p>