View previous topic :: View next topic |
Author |
Message |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Sun Jun 28, 2015 1:02 pm Post subject: what Changes ebx in this code? |
|
|
Hi i have this picture here. its for CE tutorial Step three.
the blue line decreases the health by ebx, i wanna know what changes ebx, how should i find that out.
well above blue line it says:
Code: |
inc eax
mov ebx,eax
|
does this changes ebx?
if so, what changes eax it self?
Description: |
|
Filesize: |
27.63 KB |
Viewed: |
3281 Time(s) |

|
_________________
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 28, 2015 1:32 pm Post subject: |
|
|
You are correct. EAX is increased by 1 and then moved to EBX.
You'll need to trace inside of the call ahove to find out where EAX comes from.
|
|
Back to top |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Mon Jun 29, 2015 12:08 am Post subject: |
|
|
How should i do that?
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Mon Jun 29, 2015 2:45 am Post subject: |
|
|
it probably get eax from the function result of tutorial.exe+cd60, which takes the value 10 as parameter.
most likely it's the random number generator and 10 makes it returns a value between 0 and 9 (which is why there is an inc eax because 0 is not valid)
_________________
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 |
|
 |
Nemexia55 Expert Cheater
Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Mon Jun 29, 2015 3:24 am Post subject: |
|
|
Wow! And i did "break and trace instruction, it showed every thing thanks for help
_________________
|
|
Back to top |
|
 |
|