View previous topic :: View next topic |
Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Feb 18, 2016 3:23 pm Post subject: Data type in "cl". |
|
|
Hi there. I want to compare the value in "cl" to decimal number "1" to determine which one is bigger. I have tried
But it seems that didn't work. So, how to compare them? How about:
Or is it even possible to compare them?
Thanks.
|
|
Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Thu Feb 18, 2016 3:36 pm Post subject: Re: Data type in "cl". |
|
|
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
But it seems that didn't work. So, how to compare them? How about:
Or is it even possible to compare them?
Thanks. |
You can use which is the best way you can compare a register. On paper, this is the same instruction as:
_________________
|
|
Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Feb 18, 2016 4:01 pm Post subject: Re: Data type in "cl". |
|
|
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
But it seems that didn't work. So, how to compare them? How about:
Or is it even possible to compare them?
Thanks. |
You can use which is the best way you can compare a register. On paper, this is the same instruction as: |
Thanks for the reply. But can I compare "cl" to decimal number "1"?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Feb 18, 2016 4:23 pm Post subject: |
|
|
The instruction you have already does that.
Your jump must be wrong if that isn't working for you.
|
|
Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Thu Feb 18, 2016 4:27 pm Post subject: |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Feb 18, 2016 4:30 pm Post subject: |
|
|
cmp cl,1
|
|
Back to top |
|
 |
|