title: Load index position using a user inputted value stored in register
body: <p>So I have a simple program in MIPS that takes in user input for an index value for a word array that exists in memory.  So say the word is loaded as such:</p>
  
  <pre><code>Array: .word 0xAABBCCDD:16
  </code></pre>
  
  <p>So I take it user input and store it in $t0.  My question is how do I load that specific index from my word?  I can't think of a way to get the value of the third byte in a register.  For example, say a user would input the value 3 in the prompt</p>
  
  <pre><code>Input value: 3
  </code></pre>
  
  <p>Then I would want to return the value 0xAA.</p>
  
  <pre><code>Output: 0xAA
  </code></pre>
  
  <p>I can not think of a way to get the correct offset with the index value being in the register.  I know I cannot use two registers when using lw because there is not enough memory for it.  So, is there some simple procedure I am overlooking here?  Thanks.</p>