View previous topic :: View next topic |
Author |
Message |
TheGeogeo How do I cheat? Reputation: 0
Joined: 01 Jan 2021 Posts: 6
|
Posted: Mon Aug 02, 2021 11:16 am Post subject: Quick help mul eax by eax |
|
|
Hey i want mul [eax+00000088] by [eax+00000088], i learn assembly but i don''t understand why i can't.
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4300
|
Posted: Mon Aug 02, 2021 11:33 am Post subject: |
|
|
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 |
|
|
TheGeogeo How do I cheat? Reputation: 0
Joined: 01 Jan 2021 Posts: 6
|
Posted: Mon Aug 02, 2021 12:05 pm Post subject: |
|
|
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 |
|
|
OswaldoAomine Cheater Reputation: 0
Joined: 07 Aug 2021 Posts: 38 Location: Yggdrasil
|
Posted: Sun Aug 15, 2021 11:28 pm Post subject: |
|
|
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.
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4300
|
Posted: Mon Aug 16, 2021 12:59 am Post subject: |
|
|
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 |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1055 Location: 0x90
|
Posted: Mon Aug 16, 2021 1:03 am Post subject: |
|
|
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 |
|
|
|