| View previous topic :: View next topic |
| Author |
Message |
Clasmir How do I cheat?
Reputation: 0
Joined: 23 Feb 2016 Posts: 4
|
Posted: Tue Feb 23, 2016 5:05 pm Post subject: General Question from an old man |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25814 Location: The netherlands
|
Posted: Tue Feb 23, 2016 5:46 pm Post subject: |
|
|
[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 |
|
 |
Clasmir How do I cheat?
Reputation: 0
Joined: 23 Feb 2016 Posts: 4
|
Posted: Tue Feb 23, 2016 5:51 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25814 Location: The netherlands
|
Posted: Tue Feb 23, 2016 5:56 pm Post subject: |
|
|
# 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 |
|
 |
|