View previous topic :: View next topic |
Author |
Message |
nero1232 Advanced Cheater Reputation: 0
Joined: 08 Mar 2017 Posts: 65
|
Posted: Fri Mar 17, 2017 7:20 am Post subject: My custom address isn't getting written to |
|
|
Hi,
I have a line in my autoassembly:
Code: |
mov rcx,lookvalue
mov rcx,[rsi+00000018]
|
lookvalue always stays at 0 when this line gets executed even though rsi+18 isn't 0.
Am I moving it wrong?
I also tried mov [rcx],[rsi+00000018] and mov [rcx+0],[rsi+00000018] but then it doesn't compile.
Thanks
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Mar 17, 2017 8:03 am Post subject: |
|
|
try
Code: |
mov rcx,lookvalue
mov [rcx],rsi
add [rcx],18
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
nero1232 Advanced Cheater Reputation: 0
Joined: 08 Mar 2017 Posts: 65
|
Posted: Fri Mar 17, 2017 8:38 am Post subject: |
|
|
Dark Byte wrote: | try
Code: |
mov rcx,lookvalue
mov [rcx],rsi
add [rcx],18
|
|
This almost worked, lookvalue now contains a pointer pointing to the address, but I want lookvalue to actually contain the value.
e.g. lookvalue = 8 rather than lookvalue =P->12345
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Mar 17, 2017 10:53 am Post subject: |
|
|
then
Code: |
mov rcx,lookvalue
push rax
mov rax,[rsi+18]
mov [rcx],rax
pop rax
|
Or, if your code and lookvalue are in the same region (allocated with the same base or inside the same script)
Code: |
mov rcx,[rsi+00000018]
mov [lookvalue],rcx
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
nero1232 Advanced Cheater Reputation: 0
Joined: 08 Mar 2017 Posts: 65
|
Posted: Fri Mar 17, 2017 12:53 pm Post subject: |
|
|
Dark Byte wrote: | then
Code: |
mov rcx,lookvalue
push rax
mov rax,[rsi+18]
mov [rcx],rax
pop rax
|
Or, if your code and lookvalue are in the same region (allocated with the same base or inside the same script)
Code: |
mov rcx,[rsi+00000018]
mov [lookvalue],rcx
|
|
Thanks
|
|
Back to top |
|
|
|