title: Get the first bit of the EAX register in x86 assembly language
body: <p>In x86 assembly language, is it possible to obtain the first bit of a register? I want to obtain the first bit of the <code>eax</code> register and move it into <code>ebx</code>, but I'm not sure how to do this yet.</p>
  
  <pre><code>.stack 2048
  
  .data
  
  ExitProcess proto, exitcode:dword 
  
  .code
  start:
  mov eax, 3;
  ;now I want to move the first bit of eax into ebx. How can I obtain the first bit from eax?
  invoke  ExitProcess, 0
  end start
  </code></pre>