title: C++ inline assembly error
body: <p>I'm trying to insert a JMP instruction using inline assembly but i get an error saying :</p>
  
  <p>"Expected expression" </p>
  
  <pre><code>// Allocate a place in memory for the bytes 
  BYTE *jmp = (BYTE*)malloc(len + 5);
  
  // Copy the bytes of original + length to the allocated memory place:
  memcpy(jmp, orig, len);
  
  // Next we want to insert a jump back to the original + length 
  jmp += len; // increment to the end of the copied bytes
  jmp[0] = _asm JMP   // this is where i get the error
  
  *(DWORD*)(jmp + 1) = (DWORD)(orig + len - jmp) - 5;
  </code></pre>
  
  <p>I am new to assembly and would like to know a way of achieving this goal in another way.</p>