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 


cmp qword ptr [edx] '12345678'

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
PurrShell
How do I cheat?
Reputation: 0

Joined: 11 Feb 2025
Posts: 2

PostPosted: Tue Feb 11, 2025 8:24 am    Post subject: cmp qword ptr [edx] '12345678' Reply with quote

Why can't I compile
Code:
cmp qword ptr [rdx],'12345678'
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Feb 11, 2025 9:35 am    Post subject: Reply with quote

because it's a string of more than 4 characters

cmp [address],imm32 can only compare 32 bit


you can use cmp [address],reg64 but you'll need to fill one of the registers with the value first

_________________
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
PurrShell
How do I cheat?
Reputation: 0

Joined: 11 Feb 2025
Posts: 2

PostPosted: Tue Feb 11, 2025 9:47 am    Post subject: oh my god... Reply with quote

Oh my god... Is this a problem with the Cheat Engine compiler..? Will it be fixed in version 7.6? I tried it, and without using a string, the operand can indeed be filled with 8 bytes?
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Feb 11, 2025 10:27 am    Post subject: Reply with quote

no, it's a limitation of the x86 and x86_64 instruction set
_________________
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
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

PostPosted: Tue Feb 11, 2025 2:50 pm    Post subject: Reply with quote

PurrShell wrote:
I tried it, and without using a string, the operand can indeed be filled with 8 bytes?
It can't. Maybe you're thinking of nibbles (half-bytes) instead of bytes.
_________________
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
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