View previous topic :: View next topic |
Author |
Message |
GaiaOrochi How do I cheat?
Reputation: 0
Joined: 08 Nov 2015 Posts: 7
|
Posted: Tue Mar 29, 2016 4:47 am Post subject: A little help? |
|
|
Idk what to do to change fstp thingy...edi is the value i want to change but mov edi will crash the game?
Code: | fstp qword ptr [edi]
push eax
mov eax,9999
add [edi],eax
pop edi
pop eax
pop esi
pop ebp
jmp return |
|
|
Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Tue Mar 29, 2016 6:23 am Post subject: |
|
|
Quote: | The FST instruction copies the value in the ST(0) register to the destination operand, which can be a memory location or another register in the FPU register stack. When storing the value in memory, the value is converted to single-precision or double-precision floating-point format.
The FSTP instruction performs the same operation as the FST instruction and then pops the register stack. To pop the register stack, the processor marks the ST(0) register as empty and increments the stack pointer (TOP) by 1. The FSTP instruction can also store values in memory in double extended-precision floating-point format. |
Therefore in the instructions you posted edi is just an address holder.
ST(0) is copied into the address held by EDI, it is not surprising that changing EDI would crash the game (it could also simply freeze a value).
Tell us what you want to do, most likely :
mov edi, xx
will crash the game however
mov [edi],xx
xx being a chosen value that supposedly work for whatever data type you are working with (most likely floats), should not crash the game
|
|
Back to top |
|
 |
Cake-san Grandmaster Cheater
Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Mar 29, 2016 5:39 pm Post subject: |
|
|
Code: | newmem:
dq (double)9999
code:
fstp qword ptr [edi]
fld qword ptr [newmem]
fstp qword ptr [edi]
// the rest of the original code
INJECT:
jmp code |
|
|
Back to top |
|
 |
|