| View previous topic :: View next topic |
| Author |
Message |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Sat Apr 12, 2008 2:17 pm Post subject: [Question] Assembly Code |
|
|
I have this assembly code:
And I am not sure what it does... Could someone explain it?
And then how could I minipulate this to make the address it writes to equal 1?
P.S. I can program in a bunch of other languages so don't dumb it down, I just havent looked at assembly much. |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Sat Apr 12, 2008 2:24 pm Post subject: |
|
|
the mov command (mov dest, src), copies src into dest. In this case, it would copy the eax register into 4 + the address pointed to by esi.
mov [esi+04], 1 would mov 1 instead of eax, but that would take more byte space. |
|
| Back to top |
|
 |
Chaosis13 Master Cheater
Reputation: 0
Joined: 14 Aug 2007 Posts: 372
|
Posted: Sat Apr 12, 2008 2:27 pm Post subject: |
|
|
Thank you both for your help. I was trying to get it to equal 0, but I found a fix. I instead made it a big value to make it go cazy. I did this:
Thanks again. |
|
| Back to top |
|
 |
|