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 


Assembly subtraction not coming out to what I'd expect

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Phenax
Newbie cheater
Reputation: 0

Joined: 29 Mar 2009
Posts: 16

PostPosted: Sun Dec 23, 2012 10:35 am    Post subject: Assembly subtraction not coming out to what I'd expect Reply with quote

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?



wut.png
 Description:
Image showing problem
 Filesize:  51.49 KB
 Viewed:  3040 Time(s)

wut.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Sun Dec 23, 2012 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Phenax
Newbie cheater
Reputation: 0

Joined: 29 Mar 2009
Posts: 16

PostPosted: Sun Dec 23, 2012 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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