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 


Float Values In Assemble

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
a7med.2000
How do I cheat?
Reputation: 0

Joined: 17 Sep 2014
Posts: 0

PostPosted: Wed Sep 17, 2014 12:58 pm    Post subject: Float Values In Assemble Reply with quote

I want know how to edit float value in Auto Assembler like

Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(MyPlayer)
assert("Tutorial-i386.exe"+27D7D,D8 6B 04 D9 5D D0)

newmem:
cmp [ebx+10],1
je MyPlayer
jmp originalcode

originalcode:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
jmp returnhere

MyPlayer:
fadd dword ptr [ebx+04] //I want to add specific amount of value HERE !!!!!!!!!!!!!!
fstp dword ptr [ebp-30]
jmp returnhere

"Tutorial-i386.exe"+27D7D:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Tutorial-i386.exe"+27D7D:
fsubr dword ptr [ebx+04]
fstp dword ptr [ebp-30]
//Alt: db D8 6B 04 D9 5D D0
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5636

PostPosted: Wed Sep 17, 2014 1:17 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=573332
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Sep 17, 2014 3:34 pm    Post subject: Reply with quote

fixed value:
Code:
MyPlayer:
fstp ST(0)

mov dword ptr [ebp-30],(float)9001   // over nine thousand
jmp returnhere



Increase by 1:
Code:
MyPlayer:
fstp ST(0)

fld dword ptr [ebp-30]
fld1
faddp
fstp dword ptr [ebp-30]

jmp returnhere



So, you have to learn x86 ASM and x87 FPU - google it.
Then you can try to learn MMX, SSE, SSE2 instruction set - also google it.

_________________
Back to top
View user's profile Send private message MSN Messenger
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