Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


floating point problem. code correction needed

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Freiza
Grandmaster Cheater
Reputation: 22

Joined: 28 Jun 2010
Posts: 662

PostPosted: Sat Jul 17, 2010 2:55 pm    Post subject: floating point problem. code correction needed Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites