Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Sat Jul 17, 2010 2:55 pm Post subject: floating point problem. code correction needed |
|
|
my fpu register contains at mentioned in cheat engine
0.00
31269.50
32899.50
0.00
0.01
0.01
0.00
1.00
6000.00
004265e9 fld dword ptr [ebp+08]
004265EC fstp dword ptr [esi+14] // [esi +14 ] contains 6000.00
004265EF fld dword ptr [ebp+08]
i want to poke 100000 in [esi + 14 ]
what i have done is:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
004265E9:
jmp newmem
nop
returnhere:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
fld dword ptr [ebp+08]
fstp dword ptr [esi+14]
mov dword ptr [esi+14],20000
jmp returnhere
originalcode:
fld dword ptr [ebp+08]
fstp dword ptr [esi+14]
exit:
jmp returnhere
but the game crashed tell me where i was wrong
edit:Solved Thank you
|
|