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 


General Question from an old man

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

Joined: 23 Feb 2016
Posts: 4

PostPosted: Tue Feb 23, 2016 5:05 pm    Post subject: General Question from an old man Reply with quote

It has been since 1985 that I touched assembler and that was with a z80 processor. I don't remember any of it.

I have this from an AI Wars script that I want to understand (I want to adjust the knowledge to a smaller value):

cmp dword ptr [playerstatsresourcesset_enable], #0
je playerstatsresourcesset_exit
mov [eax+288], #1578106880
mov [eax+28c], #95
mov [eax+29c], #1000000
playerstatsresourcesset_exit:

I want to verify what I understand and don't understand lol.

Take: mov [eax+288], #1578106880

The [eax+288] does that mean treat the final address as a pointer?

What does the # mean?

Am I taking the value 1578106880 and placing that big number into the address of the pointer final location [eax+288] ?


I know this is going to piss of the die-hards. I looked for tutorials and references. I found this www intel com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-vol-2a-manual html but it hurts my head. 600+ pages. Ugh.

If you feel like helping yet another schmuck. Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Tue Feb 23, 2016 5:46 pm    Post subject: Reply with quote

[eax+288] means take the value in eax, add 0x288 to it, and interpret that new value as an address

mov will place the second parameters value inside the first parameters. in this case it will write that value to the address eax+288 represents

that manual is good. i use it as well. Don't bother reading it all, just look up what you need

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Clasmir
How do I cheat?
Reputation: 0

Joined: 23 Feb 2016
Posts: 4

PostPosted: Tue Feb 23, 2016 5:51 pm    Post subject: Reply with quote

Thank you.

Does the # signify a decimal number versus hex?

I checked the MOV portion of that PDF. I guess I'll need to understand more before even that section makes sense.

Thanks again.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Tue Feb 23, 2016 5:56 pm    Post subject: Reply with quote

# means integer yes. an alternate notation is (int)
the first few chapters describe parameters.

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
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 programming 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