title: What does lw and bne in this situation mean?
body: <p>I'm quite new to programming and I was wondering what lw (both times) and bne are exactly doing in this question? I'm sorry for any mistakes in the question because I had to translate it to english.</p>
  
  <p><em>Here starts the question:</em></p>
  
  <p>Part of the data memory contains the following values:</p>
  
  <p><strong>address-value</strong></p>
  
  <p>100-1</p>
  
  <p>104-2</p>
  
  <p>108-4</p>
  
  <p>112-8</p>
  
  <p>116-16</p>
  
  <p>Given the code below, what will be the value of register r1 after executing this code?</p>
  
  <pre><code>addi    r2,r0,104
  lw  r1,-4(r2)
  addi    r3,r0,116
  label:  addi    r2,r2,4
  lw  r4,-4(r2)
  add r4,r4,r4
  add r1,r4,r1
  bne r2,r3,label
  </code></pre>