Inline ASM Pointers
Posted: Fri Jun 18, 2010 11:24 pm
Alright, what I need to do is write the value 4 to this pointer in c++ inline asm:
[Value of 00400000] + 0x32F8
Can you give me an example what the code should be?
I tried this and it crashed me:
I USE THE ADDRESS 00400000 JUST FOR EXAMPLE
[Value of 00400000] + 0x32F8
Can you give me an example what the code should be?
I tried this and it crashed me:
- Code: Select all
_asm {
mov eax,0x00400000
mov ebx,[eax]
add ebx,0x32F8
mov eax,[ebx]
add dword ptr ds:[eax],0x04
}
I USE THE ADDRESS 00400000 JUST FOR EXAMPLE