How to compare qword size values?

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
wannaknow
Novice Cheater
Novice Cheater
Posts: 16
Joined: Thu Mar 17, 2022 7:31 am
Reputation: 0

How to compare qword size values?

Post by wannaknow »

Let's say the base address of a game is 150000000

And I tried to use cmp in the script

cmp [rsp+10],"base address"+12345 (intending cmp [rsp+10],150012345)

But it didn't work and I found in opcode that it worked as cmp [rsp+10],50012345.

1,which was the most front, has been cut.

I put qword ptr and (qword) in front of operands but it said not possible.

I guess this is because cmp only work within 32bit size.

Any ideas for comparing 64bit size operands?

Thanks in advance

iNvIcTUs oRCuS
Noobzor
Noobzor
Posts: 9
Joined: Fri Mar 03, 2017 6:22 am
Reputation: 5

Re: How to compare qword size values?

Post by iNvIcTUs oRCuS »

You have to compare it through registers...
Example...
mov rax, 150012345
cmp [rsp+10], rax

wannaknow
Novice Cheater
Novice Cheater
Posts: 16
Joined: Thu Mar 17, 2022 7:31 am
Reputation: 0

Re: How to compare qword size values?

Post by wannaknow »

iNvIcTUs oRCuS wrote:
Sun Sep 25, 2022 1:30 pm
You have to compare it through registers...
Example...
mov rax, 150012345
cmp [rsp+10], rax
Thanks for help.

Post Reply

Who is online

Users browsing this forum: No registered users