title: Efficient assembly check on multiple bits
body: <p>I have some value in AX and need to check on multiple bits at a time.
  Let's say I want to check the first and the last bits and the others are DC values.
  that what I did, but it's so inefficient as I am checking for multiple times for different values.</p>
  
  <pre><code>AND AX,8001H
  CMP AX,8001H
  JE
  </code></pre>
  
  <p>I have thought about only ANDing and jumping based on the parity but using MASM the parity is for the first 8 bits only so...</p>