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 


Quick help mul eax by eax

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

Joined: 01 Jan 2021
Posts: 6

PostPosted: Mon Aug 02, 2021 11:16 am    Post subject: Quick help mul eax by eax Reply with quote

Hey i want mul [eax+00000088] by [eax+00000088], i learn assembly but i don''t understand why i can't.
Sad
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Aug 02, 2021 11:33 am    Post subject: Reply with quote

You generally can't have two memory accesses in the same instruction.
Code:
mov ecx,[eax+88]
imul ecx,ecx
mov [eax+88],ecx

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
TheGeogeo
How do I cheat?
Reputation: 0

Joined: 01 Jan 2021
Posts: 6

PostPosted: Mon Aug 02, 2021 12:05 pm    Post subject: Reply with quote

ParkourPenguin wrote:
You generally can't have two memory accesses in the same instruction.
Code:
mov ecx,[eax+88]
imul ecx,ecx
mov [eax+88],ecx


Ok thx nice info
Back to top
View user's profile Send private message
OswaldoAomine
Cheater
Reputation: 0

Joined: 07 Aug 2021
Posts: 38
Location: Yggdrasil

PostPosted: Sun Aug 15, 2021 11:28 pm    Post subject: Reply with quote

sorry for post here but my question is when i multiply the money for 2x the money i received is more that 2x the nasm opcode i use is this


imul eax,2
mov [esi+00],eax

i don't know why when i received the money is more bigger in the game i test this is euro truck 2 when i get 400000 of the bank i received one million someone know what is the problem thanks. Very Happy
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Mon Aug 16, 2021 12:59 am    Post subject: Reply with quote

You're multiplying your money by 2, not the money to add.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Mon Aug 16, 2021 1:03 am    Post subject: Reply with quote

Set a breakpoint on the address which deals with the money and see what values are held in the registers before multiplying.

Also, imul = signed multiply which can yield a negative value. You want to use mul for 32-bit values.
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