how to "nop ptr[eax + 0x00]" on C++ _asm inline

192 Views Asked by At

i have this code in 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

and i have this code on 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
   }

how do I put this nop dword in the c++ code? if I write normally, visual studio returns an error.

visual studio error image

0

There are 0 best solutions below