title: ARM Assembly, manipulating variables
body: <p>I have been trying to do some simple manipulations in assembly for the ARM M0+ processor.</p>
  
  <p>Thus far I have failed.</p>
  
  <p>I want to allocate two variables, a &amp; b to some values, 3 &amp; 8, then I want to set one variable to the value of the other. </p>
  
  <p>In any higher level language I would only need </p>
  
  <pre><code>int a = 3;
  int b = 8;
  b = a;
  </code></pre>
  
  <p>So far in assembly I figured out how to allocate and set variables. </p>
  
  <pre><code>a DCD 3
  b DCD 8
  </code></pre>
  
  <p>And I figured out how to get the value and address of the variables</p>
  
  <pre><code>LDR r0, =a    ; r0 = &amp;a
  LDR r0, [r0]  ; r0 = a
  </code></pre>
  
  <p>This is where I'm getting stuck, how do I store the value of r0 into the varaible b? </p>