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 


Help a noob use the single line assembler

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

Joined: 12 Apr 2013
Posts: 5

PostPosted: Mon Apr 15, 2013 4:13 pm    Post subject: Help a noob use the single line assembler Reply with quote

Ill cut straight to it:
in the single line assembler, what do i type to make the code add X to the value every time it gets called?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Apr 15, 2013 4:15 pm    Post subject: Reply with quote

Code:
add [eax+4],#10

if its dw use #10, if its float use add [eax+4],(float)10.00 if its double add [eax+4],(double)10.00
or use movq and addss/addsd to xmm's...

#=decimal number
without # its used as HEX.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
AfroPriest
How do I cheat?
Reputation: 0

Joined: 12 Apr 2013
Posts: 5

PostPosted: Mon Apr 15, 2013 4:25 pm    Post subject: Reply with quote

Hmm well thats a bit hard to get for me...

here's what i got
Bully.exe+30A3E8 - 01 9E 7C020000 - add [esi+0000027C],ebx

Pretty sure you can tell just by looking at it but it's a float and I wanna add 100 to it every time.

In the assembler by default: add [esi+0000027C],ebx

What would I do here?
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Mon Apr 15, 2013 4:36 pm    Post subject: Reply with quote

Its float? are you sure?
For float Im used to see for example this
Code:
movq xmm0,[ebx+8] //Lets say ebx+8= 50 Float
movq xmm1,[ebx+10]//lets say ebx+8= 150 Float
addsd xmm0,xmm1 //adding to xmm0 the xmm1. so in total 200 Flat
movq [esi+0000027C],xmm0

Anyhow you can do this
Code:

add [esi+0000027C],(float)100.0

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
AfroPriest
How do I cheat?
Reputation: 0

Joined: 12 Apr 2013
Posts: 5

PostPosted: Mon Apr 15, 2013 4:41 pm    Post subject: Reply with quote

Works perfectly, thanks!
Back to top
View user's profile Send private message
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