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 


how to cmp 8byte numer?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
cancandodo
Advanced Cheater
Reputation: 0

Joined: 09 Mar 2012
Posts: 70

PostPosted: Wed Sep 06, 2023 8:23 pm    Post subject: how to cmp 8byte numer? Reply with quote

push r10d
mov r10d,[rbp-48]
cmp r10d,00001F91000023F1
pop r10d

but in the memory viewer

it is

push r10d
mov r10d,[rbp-48]
cmp r10d,000023F1
pop r10d



Snipaste_2023-09-07_09-59-17.png
 Description:
 Filesize:  42.63 KB
 Viewed:  1773 Time(s)

Snipaste_2023-09-07_09-59-17.png


Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Wed Sep 06, 2023 8:33 pm    Post subject: Reply with quote

r10d is a DWORD, which is a 4bytes register

if you want to compare the full register, you need to specify "r10" register
Code:
push r10
mov r10,[rbp-48]
cmp r10,00001F91000023F1
pop r10


or:
Code:

push r10
mov r10,00001F91000023F1
cmp r10,[rbp-48]
pop r10


or:
Code:
push rax
push r10
mov rax,00001F91000023F1
mov r10,[rbp-48]
cmp r10,rax
pop r10
pop rax
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Wed Sep 06, 2023 9:14 pm    Post subject: Reply with quote

TsTg wrote:
Code:
cmp r10,00001F91000023F1
`cmp` can't take an 8-byte immediate. It can only compare an r/m64 value against a sign-extended 32-bit immediate.

Your second solution is good, the third will work too

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Thu Sep 07, 2023 2:26 am    Post subject: Reply with quote

ParkourPenguin wrote:
TsTg wrote:
Code:
cmp r10,00001F91000023F1
`cmp` can't take an 8-byte immediate. It can only compare an r/m64 value against a sign-extended 32-bit immediate.

Your second solution is good, the third will work too

right, i keep forgetting that from time to time Very Happy
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