samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sun Jan 27, 2008 9:56 pm Post subject: |
|
|
I don't quite get what you're saying.
This may be what you're looking for:
If you have a pointer with the base address of 0x0000CAFE, and it has the offset 20, do this:
| Code: |
mov [0000CAFE+20],1 //mov 1 into the value of our pointer
|
or, if you want to move the value of 0xDEADBEEF, for example, into the value of the pointer:
| Code: |
push eax //pushing eax basically saves the value, so we don't screw stuff
//up later
mov eax, 0000CAFE //put the base address into eax
lea eax, [eax+20] //set up the pointer
mov eax, [DEADBEEF] //put the value of DEADBEEF into our pointer
pop eax //restore eax to its original value, so we don't screw things up
//later
|
_________________
|
|