title: Get values of specific bits in a byte
body: <p>For example, I have this binary number: 
  00100101
  And I want to make a new number with only the last 2 bits and the others 0, like so:
  00000001</p>
  
  <p>I am working with MIPS so I assume I must use some combination of logical or, xor, and, ect but unsuccessful so far.</p>