title: C++ ASM Inline how to use boolean?
body: <p>Say I got something like this..</p>
  
  <pre><code>bool isPatched;
  </code></pre>
  
  <p>I have a few other GUI's where I set <code>isPatched= true;</code> and <code>isPatched= false;</code>, <code>isPatched = !isPatched;</code></p>
  
  <pre><code>void __declspec( naked ) test(void) { //
      __asm {
          PUSHAD
          PUSHFD
  
          MOV EAX, isPatched
          CMP EAX, 0
          je noPatched
              MOV EAX, DWORD PTR DS:[ESI+0x77C]
              MOV John.oldA, EAX
              MOV EAX, John.A
              MOV DWORD PTR DS:[ESI+0x77C], EAX
              JMP finish
  noPatched:
              PUSH EDX
              MOV DWORD PTR DS:[ESI+0x77C], EDX
          finish:
          POPFD
          POPAD
  
          JMP gotoAddressBack
  
      }
  }
  </code></pre>
  
  <p>Is it possible to use <code>bool</code> operator in inline assembly?</p>
  
  <p>I think it thinks isPatched is a label.. from this error message.
  <code>error C2094: label 'isPatched' was undefined</code></p>