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 with ASM

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
512MB
Cheater
Reputation: 0

Joined: 07 Apr 2015
Posts: 38

PostPosted: Sat Nov 04, 2017 1:51 pm    Post subject: help with ASM Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Nov 04, 2017 7:41 pm    Post subject: Reply with quote

Opposite. Left value is the destination, right is the source.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sat Nov 04, 2017 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Prehistoricman
Advanced Cheater
Reputation: 0

Joined: 02 Aug 2016
Posts: 80

PostPosted: Sun Nov 05, 2017 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message
mindoff
Advanced Cheater
Reputation: 0

Joined: 12 Jun 2016
Posts: 96

PostPosted: Sun Nov 05, 2017 7:48 am    Post subject: Reply with quote

If you can access youtube,there are plenty of tutorials about CE and ASM for beginners.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sun Nov 05, 2017 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Nov 05, 2017 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MulleDK19
Cheater
Reputation: 0

Joined: 12 Aug 2012
Posts: 25
Location: Denmark

PostPosted: Mon Nov 06, 2017 1:12 pm    Post subject: Re: help with ASM Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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