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 


Data type in "cl".

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Feb 18, 2016 3:23 pm    Post subject: Data type in "cl". Reply with quote

Hi there. I want to compare the value in "cl" to decimal number "1" to determine which one is bigger. I have tried
Code:
cmp cl,1


But it seems that didn't work. So, how to compare them? How about:
Code:
cmp cl,#1


Or is it even possible to compare them?

Thanks.
Back to top
View user's profile Send private message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Thu Feb 18, 2016 3:36 pm    Post subject: Re: Data type in "cl". Reply with quote

fmanager wrote:
Hi there. I want to compare the value in "cl" to decimal number "1" to determine which one is bigger. I have tried
Code:
cmp cl,1


But it seems that didn't work. So, how to compare them? How about:
Code:
cmp cl,#1


Or is it even possible to compare them?

Thanks.


You can use
Code:
test cl,cl
which is the best way you can compare a register. On paper, this is the same instruction as:
Code:
cmp cl,0

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Feb 18, 2016 4:01 pm    Post subject: Re: Data type in "cl". Reply with quote

mgostIH wrote:
fmanager wrote:
Hi there. I want to compare the value in "cl" to decimal number "1" to determine which one is bigger. I have tried
Code:
cmp cl,1


But it seems that didn't work. So, how to compare them? How about:
Code:
cmp cl,#1


Or is it even possible to compare them?

Thanks.


You can use
Code:
test cl,cl
which is the best way you can compare a register. On paper, this is the same instruction as:
Code:
cmp cl,0


Thanks for the reply. But can I compare "cl" to decimal number "1"?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Feb 18, 2016 4:23 pm    Post subject: Reply with quote

The instruction you have already does that.
Your jump must be wrong if that isn't working for you.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Thu Feb 18, 2016 4:27 pm    Post subject: Reply with quote

Zanzer wrote:
The instruction you have already does that.
Your jump must be wrong if that isn't working for you.


Thanks for the reply. Which instruction are you referring to?
test cl, cl <----------- this one?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Feb 18, 2016 4:30 pm    Post subject: Reply with quote

cmp cl,1
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