0

我在 asm 中有这个代码:

cmp ecx,46DC0E00
je 1A380021
nop dword ptr [eax+00]
mov [edx+00000584],ecx
mov [edx+00000584],00000000
jmp game.exe+A42067
mov [edx+00000584],ecx
jmp game.exe+A42067

我在 C++ 上有这个代码:

__asm
   {
      cmp ecx, 0x46DC0E00
      je $ + 0x19 //25 bytes

      **i need put NOP DWORD here**

      mov[edx + 0x00000584], ecx
      mov[edx + 0x00000584], 0
      jmp JmpBack
      mov[edx + 0x00000584], ecx
      jmp JmpBack
   }

我如何将这个 nop dword 放在 c++ 代码中?如果我正常书写,Visual Studio 会返回错误。

视觉工作室错误图像

4

0 回答 0