title: Testing if a value is within one of two ranges
body: <p>I am writing a MIPS program that should only works with uppercase or lowercase characters as input. My program works using the ASCII values of the characters.</p>
  
  <p>I need to check if each character in the input is in the ASCII range of 65-90 (A-Z) or else 97-122 (a-z). If it is not in either of those ranges, skip this character and repeat for the next character. How can this be done?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is a solution I just came up with but I'm sure there is a less ugly way to do this?</p>
  
  <pre><code>function:    #increment $t0 to next char of input
               blt $t0, 65, function
               bgt $t0, 122, function
               blt $t0, 91, continue
               bgt $t0, 96, continue
               j   function
  continue:    ...
               j   function
  </code></pre>