View previous topic :: View next topic |
Author |
Message |
512MB Cheater Reputation: 0
Joined: 07 Apr 2015 Posts: 38
|
Posted: Sat Nov 04, 2017 1:51 pm Post subject: help with ASM |
|
|
I have something that looks like this
Code: | sub ecx,eax
mov [Doukutsu.exe+9E6CC],cx |
If I understand this right then what these instructions are doing is that its copying "Doukutsu.exe+9E6CC" and sending it to cx and cx becomes the new address. Am I right or if wrong could someone explain what it does?
Could someone give me some good tutorials that you recommend for a starter?
I have read the tutorial on the forum. |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Nov 04, 2017 7:41 pm Post subject: |
|
|
Opposite. Left value is the destination, right is the source. |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sat Nov 04, 2017 11:45 pm Post subject: |
|
|
intel:
operation dist, src
amd:
operation src, dist _________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Sun Nov 05, 2017 5:55 am Post subject: |
|
|
OldCheatEngineUser wrote: | intel:
operation dist, src
amd:
operation src, dist |
What do you mean by this? AMD processors use Intel's x86 instruction set. Are you saying that amd64 instructions use that convention (which would also be followed on Intel processors)? _________________
Er, hi |
|
Back to top |
|
|
mindoff Advanced Cheater Reputation: 0
Joined: 12 Jun 2016 Posts: 96
|
Posted: Sun Nov 05, 2017 7:48 am Post subject: |
|
|
If you can access youtube,there are plenty of tutorials about CE and ASM for beginners. |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Sun Nov 05, 2017 7:55 am Post subject: |
|
|
Prehistoricman wrote: | What do you mean by this? |
What that person said doesn't make sense. I'd guess they meant to say Intel vs AT&T syntax, but that's still largely irrelevant with regards to your original question.
CE uses Intel syntax where the destination is typically the first operand and the source (if applicable) is typically the second operand.
Code: | sub ecx,eax - subtracts eax from ecx and stores the result in ecx
mov [Doukutsu.exe+9E6CC],cx - writes the 16 bits of data in cx to the specified memory address |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1586
|
Posted: Sun Nov 05, 2017 8:21 am Post subject: |
|
|
ParkourPenguin wrote: | Prehistoricman wrote: | What do you mean by this? |
What that person said doesn't make sense. I'd guess they meant to say Intel vs AT&T syntax, but that's still largely irrelevant with regards to your original question.
CE uses Intel syntax where the destination is typically the first operand and the source (if applicable) is typically the second operand.
Code: | sub ecx,eax - subtracts eax from ecx and stores the result in ecx
mov [Doukutsu.exe+9E6CC],cx - writes the 16 bits of data in cx to the specified memory address |
|
I meant nasm vs at&t
edit:
well yeah, or I should said Intel vs at&t.
another edit:
from what I remember AMD was using at&t syntax, that's whyvi said AMD vs Intel. _________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
MulleDK19 Cheater Reputation: 0
Joined: 12 Aug 2012 Posts: 25 Location: Denmark
|
Posted: Mon Nov 06, 2017 1:12 pm Post subject: Re: help with ASM |
|
|
Sare wrote: | I have something that looks like this
Code: | sub ecx,eax
mov [Doukutsu.exe+9E6CC],cx |
If I understand this right then what these instructions are doing is that its copying "Doukutsu.exe+9E6CC" and sending it to cx and cx becomes the new address. Am I right or if wrong could someone explain what it does?
Could someone give me some good tutorials that you recommend for a starter?
I have read the tutorial on the forum. |
The first operand is the destination, the second is the source.
The destination in this case is the memory at Doukutsu.exe+9E6CC (The game's base address + an offset), and the source is CX, the lower 16-bit of the ECX register. Thus the instruction writes CX to the first 2 bytes (16-bit) of the memory at Doukutsu.exe+9E6CC
There are lots of tutorials out there on getting started with x86 assembly. |
|
Back to top |
|
|
|