title: Big Endian and Little Endian
body: <p>Given is the snap shot of memory of a byte-addressable computer. What would be loaded into register <code>$16</code> after execution of instruction <code>lw $16, 24($17)</code> if machine is big endian and when Little Endian. Register <code>$17</code> contains <code>200</code>.</p>
  
  <p><img src="https://i.stack.imgur.com/ea1HV.png" alt="enter image description here"></p>
  
  <p>Now according to me, four bytes would be copied from the memory <code>(224-227)</code> irrespective of Little Endian or Big Endian,then if the machine is Big Endian then they will be copied to the register as they are.</p>
  
  <p>If the machine is Little Endian then will be reversed and then copied to the register.</p>
  
  <p>Please guide me if I am wrong with the concept.</p>