0
我尝试使用内联汇编插入JMP指令,但我得到一个错误说:C++内联汇编错误
“预期的表达”
// 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;
我是新来组装和想以另一种方式了解实现这一目标的方法。