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 


Multiply an address's value by a X

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

Joined: 01 Mar 2015
Posts: 4

PostPosted: Sun Mar 01, 2015 4:22 pm    Post subject: Multiply an address's value by a X Reply with quote

How do i multiply an address value, say like [####] = 3.969, i want [####] = 9.969... I want to do it in assembly commands, not in lua script!!! Is that even possible ??

Should be something like :
movq [0A49C698],xmm0
//multiply [0A49C698]*3
movq xmm0,[0A49C698]

(Note: the value is a double) js, because add doesn't work with signed doubles somehow!!!
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Mar 01, 2015 4:43 pm    Post subject: Reply with quote

alloc(myvar,8 )
myvar:
dq (double)3.0

mulsd xmm0,[myvar]
Back to top
View user's profile Send private message
IllumiZoldick
How do I cheat?
Reputation: 0

Joined: 01 Mar 2015
Posts: 4

PostPosted: Sun Mar 01, 2015 5:31 pm    Post subject: Reply with quote

Zanzer wrote:
alloc(myvar,8 )
myvar:
dq (double)3.0

mulsd xmm0,[myvar]


Thanks for the reply, but i think the
Code:
dq (double)3.0
is crashing the flash game, then i tried this code alone (just to see what crashes the game)

Code:
alloc(myvar,8 )
myvar:
  dq (double)3.0


and it crashed!!
Back to top
View user's profile Send private message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Sun Mar 01, 2015 7:42 pm    Post subject: Reply with quote

I just do:
Code:
    push eax
    push ecx
mov eax,[your thing]
mov ecx,03 // the mulitplier
mul ecx // result is put into eax
mov [your thing],eax
    pop ecx
    pop eax

Can't remember if it works with floats.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

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

PostPosted: Mon Mar 02, 2015 10:54 am    Post subject: Re: Multiply an address's value by a X Reply with quote

@IllumiZoldick, better post your script, whole. (with ENABLE ans DISABLE parts)

@deama1234, nope, mul and imul works only on integer values.

_________________
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