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 compare a doulbe value?

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

Joined: 26 May 2017
Posts: 4

PostPosted: Sun Apr 11, 2021 4:07 am    Post subject: how to compare a doulbe value? Reply with quote

cmp [eax+04],(double)200

it just cmp 4 bytes 00 00 00 00 in memory

note cmp 8 bytes 00 00 00 00 00 00 69 40
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Sun Apr 11, 2021 10:58 am    Post subject: Reply with quote

Code:
...
alloc(newmem,2048)
alloc(cmpvalue,8)

newmem:
  mov xmm0,[eax+04]
  comisd xmm0,[cmpvalue]
  je/ja/jb...

cmpvalue:
  dq (double)200.0
...

_________________
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
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Wed Apr 14, 2021 8:11 am    Post subject: Reply with quote

or this:
Code:
cmp [eax+04+4],(double32H)200

wrote a separate 4 for better understanding
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