title: calculating offset
body: <p>I have a question from homework.</p>
  
  <p>I have a <code>BNE</code> instruction at <code>0x88888888</code>, and I need to tell what is the legal jump range.</p>
  
  <p>My theory is that the offset tells me I can go:</p>
  
  <ul>
  <li>From 0x8888888 - 4 * 2<sup>15</sup></li>
  <li>To 0x88888888 + 4 * (2<sup>15</sup>-1)</li>
  </ul>
  
  <p>I really don't understand why and how this works, can someone please explain it?</p>