title: __asm using c++ variables (MSVS 2012)
body: <p>I am trying to add two c long variables (as I am trying to gradually understand assembly) :    </p>
  
  <pre><code>long add(long _a, long _b){
      __asm{
          mov rax, _a;
          add _b, rax;
      }
      return _b;
  }
  </code></pre>
  
  <p>All I get is improper operand type errors. Now I realize I could do </p>
  
  <pre><code>return _a + _b;
  </code></pre>
  
  <p>But I am doing this just to understand assembly.</p>