| View previous topic :: View next topic |
| Author |
Message |
Phenax Newbie cheater
Reputation: 0
Joined: 29 Mar 2009 Posts: 16
|
Posted: Sun Dec 23, 2012 10:35 am Post subject: Assembly subtraction not coming out to what I'd expect |
|
|
Basically, EBP is 0x80. I subtract 0x80 from that, expecting a result of 0, and I get 0x100. This is the result of 0x80+0x80, not 0x80-0x80.
What am I doing wrong here or misunderstanding?
| Description: |
|
| Filesize: |
51.49 KB |
| Viewed: |
3038 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25866 Location: The netherlands
|
Posted: Sun Dec 23, 2012 11:14 am Post subject: |
|
|
do an sub ebp,00000080 instead of just 80.
sub ebp,80 is the sign extended version , meaning "sub ebp,-128"
_________________
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 |
|
 |
Phenax Newbie cheater
Reputation: 0
Joined: 29 Mar 2009 Posts: 16
|
Posted: Sun Dec 23, 2012 11:30 am Post subject: |
|
|
| Dark Byte wrote: | do an sub ebp,00000080 instead of just 80.
sub ebp,80 is the sign extended version , meaning "sub ebp,-128" |
Ahhh, makes perfect sense. Didn't know that was the default behavior. Much appreciated, Dark Byte.
|
|
| Back to top |
|
 |
|