| View previous topic :: View next topic |
| Author |
Message |
kagato1980 Cheater
Reputation: 0
Joined: 30 Oct 2020 Posts: 30 Location: The netherlands
|
Posted: Sat Jul 01, 2023 2:31 pm Post subject: [SOLVED] Compare xmm6, xmm8 |
|
|
I want to check if xmm6 and xmm8 contain the same value.
I think I can use something like "pcmpeqb xmm6,xmm8" but haven't gotten it to work yet. Should I store the values first, before doing any comparisons on them?
In pseudo code, I want something like:
| Code: | cmp xmm6,xmm8
je code |
Last edited by kagato1980 on Sun Jul 02, 2023 12:54 am; edited 1 time in total |
|
| Back to top |
|
 |
YoucefHam Cheater
Reputation: 5
Joined: 19 Mar 2015 Posts: 39 Location: Algeria
|
Posted: Sat Jul 01, 2023 3:51 pm Post subject: Re: Compare xmm6, xmm8 |
|
|
| kagato1980 wrote: | I want to check if xmm6 and xmm8 contain the same value.
I think I can use something like "pcmpeqb xmm6,xmm8" but haven't gotten it to work yet. Should I store the values first, before doing any comparisons on them?
........ |
Use COMISS https://wiki.cheatengine.org/index.php?title=Assembler:Commands:COMISS
| Code: |
comiss xmm6, xmm8
ja code
|
|
|
| Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3326
|
Posted: Sat Jul 01, 2023 7:25 pm Post subject: |
|
|
The answer would depend on what value you have in xmm6 and xmm8.
If it's single-prec floating point value, YoucefHam's code should work fine.
I'd recommend you read the Intel Developer's Manual.
|
|
| Back to top |
|
 |
|